/[RomCheater]/trunk/RomCheater.Core/GuidTools.cs
ViewVC logotype

Contents of /trunk/RomCheater.Core/GuidTools.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 527 - (show annotations) (download)
Wed Jun 5 08:09:59 2013 UTC (7 years, 2 months ago) by william
File size: 747 byte(s)

1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5
6 namespace RomCheater.Core
7 {
8 public static class GuidTools
9 {
10 public static Guid IncrementGuid(Guid guid)
11 {
12 byte[] guidBytes = guid.ToByteArray();
13 guidBytes[guidBytes.Length - 1]++; // increment the search guid by 1
14 Guid t_guid = new Guid(guidBytes);
15 return t_guid;
16 }
17 public static Guid DecrementGuid(Guid guid)
18 {
19 byte[] guidBytes = guid.ToByteArray();
20 guidBytes[guidBytes.Length - 1]--; // increment the search guid by 1
21 Guid t_guid = new Guid(guidBytes);
22 return t_guid;
23 }
24 }
25 }

  ViewVC Help
Powered by ViewVC 1.1.22