0
|
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 }
|