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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 887 - (show annotations) (download)
Wed Sep 17 04:17:44 2014 UTC (6 years, 5 months ago) by william
File size: 753 byte(s)


1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5
6 namespace RomCheater.Interfaces
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