Mercurial > pub > bltoolkit
comparison Source/Mapping/NullGuidAttribute.cs @ 0:f990fcb411a9
Копия текущей версии из github
| author | cin |
|---|---|
| date | Thu, 27 Mar 2014 21:46:09 +0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:f990fcb411a9 |
|---|---|
| 1 using System; | |
| 2 | |
| 3 namespace BLToolkit.Mapping | |
| 4 { | |
| 5 public class NullGuidAttribute : NullValueAttribute | |
| 6 { | |
| 7 public NullGuidAttribute() | |
| 8 : base(Guid.Empty) | |
| 9 { | |
| 10 } | |
| 11 | |
| 12 public NullGuidAttribute(byte[] b) | |
| 13 : base(new Guid(b)) | |
| 14 { | |
| 15 } | |
| 16 | |
| 17 public NullGuidAttribute(string g) | |
| 18 : base(new Guid(g)) | |
| 19 { | |
| 20 } | |
| 21 | |
| 22 public NullGuidAttribute(int a, short b, short c, byte[] d) | |
| 23 : base(new Guid(a, b, c, d)) | |
| 24 { | |
| 25 } | |
| 26 | |
| 27 public NullGuidAttribute(int a, short b, short c, byte d, byte e, byte f, byte g, byte h, byte i, byte j, byte k) | |
| 28 : base(new Guid(a, b, c, d, e, f, g, h, i, j, k)) | |
| 29 { | |
| 30 } | |
| 31 | |
| 32 #if !SILVERLIGHT | |
| 33 | |
| 34 [CLSCompliant(false)] | |
| 35 public NullGuidAttribute(uint a, ushort b, ushort c, byte d, byte e, byte f, byte g, byte h, byte i, byte j, byte k) | |
| 36 : base(new Guid(a, b, c, d, e, f, g, h, i, j, k)) | |
| 37 { | |
| 38 } | |
| 39 | |
| 40 #endif | |
| 41 } | |
| 42 } |
