20 references to ToObject
mscorlib (2)
system\enum.cs (1)
403
parseResult.parsedEnum =
ToObject
(enumType, temp);
system\Runtime\InteropServices\ComEventsMethod.cs (1)
65
args[i] = Enum.
ToObject
(_cachedTargetTypes[i], args[i]);
PresentationFramework (1)
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
2545
return Enum.
ToObject
(type.UnderlyingType, bytes).ToString();
System (3)
compmod\system\componentmodel\EnumConverter.cs (1)
233
return new Enum[] {(Enum)Enum.
ToObject
(type, value)};
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (2)
188
defaultValue = Enum.
ToObject
(PropertyType, defaultValue);
324
defaultValue = Enum.
ToObject
(PropertyType, defaultValue);
System.ComponentModel.DataAnnotations (1)
DataAnnotations\EnumDataTypeAttribute.cs (1)
68
convertedValue = Enum.
ToObject
(this.EnumType, value);
System.Data (4)
fx\src\data\System\Data\Common\DbConnectionStringCommon.cs (4)
440
eValue = (PoolBlockingPeriod)Enum.
ToObject
(typeof(PoolBlockingPeriod), value);
565
eValue = (ApplicationIntent)Enum.
ToObject
(typeof(ApplicationIntent), value);
759
eValue = (SqlAuthenticationMethod)Enum.
ToObject
(typeof(SqlAuthenticationMethod), value);
825
eValue = (SqlConnectionColumnEncryptionSetting)Enum.
ToObject
(typeof(SqlConnectionColumnEncryptionSetting), value);
System.Data.Entity (2)
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
564
value = Enum.
ToObject
(clrEnumType, value);
System\Data\Objects\ObjectContext.cs (1)
3334
_objectParameter.Value = Enum.
ToObject
(_objectParameter.MappableType, _entityParameter.Value);
System.Data.Linq (1)
DbConvert.cs (1)
98
return Enum.
ToObject
(toType, Convert.ChangeType(value, Enum.GetUnderlyingType(toType), Globalization.CultureInfo.InvariantCulture));
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
572
value = Enum.
ToObject
(underlyingType ?? type, value);
System.Windows.Forms (4)
winforms\Managed\System\WinForms\AxHost.cs (1)
7149
baseProp.SetValue(component, Enum.
ToObject
(this.PropertyType, value));
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2EnumConverter.cs (1)
81
return Enum.
ToObject
(destinationType, value);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (1)
295
valueItems[i] = Enum.
ToObject
(targetType, valueItems[i]);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
933
lastValue = Enum.
ToObject
(propertyType, lastValue);
System.Workflow.Activities (1)
Rules\Executor.cs (1)
852
converted = Enum.
ToObject
(resultType, adjusted);