51 references to PrimitiveType
System.Activities.DurableInstancing (51)
System\Activities\DurableInstancing\SerializationUtilities.cs (1)
170
bool isComplex = (XmlPropertyBag.GetPrimitiveType(property.Value.Value) ==
PrimitiveType
.Unavailable);
System\Activities\DurableInstancing\XmlPropertyBag.cs (50)
41
PrimitiveType
type = (
PrimitiveType
)Int32.Parse(reader.Value, CultureInfo.InvariantCulture);
69
public static
PrimitiveType
GetPrimitiveType(object value)
73
return
PrimitiveType
.Null;
77
return
PrimitiveType
.Bool;
81
return
PrimitiveType
.Byte;
85
return
PrimitiveType
.Char;
89
return
PrimitiveType
.DateTime;
93
return
PrimitiveType
.DateTimeOffset;
97
return
PrimitiveType
.Decimal;
101
return
PrimitiveType
.Double;
105
return
PrimitiveType
.Float;
109
return
PrimitiveType
.Guid;
113
return
PrimitiveType
.Int;
117
return
PrimitiveType
.Long;
121
return
PrimitiveType
.SByte;
125
return
PrimitiveType
.Short;
129
return
PrimitiveType
.String;
133
return
PrimitiveType
.TimeSpan;
137
return
PrimitiveType
.Type;
141
return
PrimitiveType
.UInt;
145
return
PrimitiveType
.ULong;
149
return
PrimitiveType
.Uri;
153
return
PrimitiveType
.UShort;
157
return
PrimitiveType
.XmlQualifiedName;
161
return
PrimitiveType
.Unavailable;
165
public static object ConvertStringToNativeType(string value,
PrimitiveType
type)
169
case
PrimitiveType
.Bool:
171
case
PrimitiveType
.Byte:
173
case
PrimitiveType
.Char:
175
case
PrimitiveType
.DateTime:
177
case
PrimitiveType
.DateTimeOffset:
179
case
PrimitiveType
.Decimal:
181
case
PrimitiveType
.Double:
183
case
PrimitiveType
.Float:
185
case
PrimitiveType
.Guid:
187
case
PrimitiveType
.Int:
189
case
PrimitiveType
.Long:
191
case
PrimitiveType
.SByte:
193
case
PrimitiveType
.Short:
195
case
PrimitiveType
.String:
197
case
PrimitiveType
.TimeSpan:
199
case
PrimitiveType
.Type:
201
case
PrimitiveType
.UInt:
203
case
PrimitiveType
.ULong:
205
case
PrimitiveType
.Uri:
207
case
PrimitiveType
.UShort:
209
case
PrimitiveType
.XmlQualifiedName:
211
case
PrimitiveType
.Null:
212
case
PrimitiveType
.Unavailable: