94 references to Parse
mscorlib (19)
system\diagnostics\eventing\eventsource.cs (1)
3190
value = Enum.
Parse
(p.PropertyType, value.ToString());
system\oleautbinder.cs (1)
61
return Enum.
Parse
(type, value.ToString());
system\resources\resourcewriter.cs (1)
576
ResourceTypeCode typeCode = (ResourceTypeCode)Enum.
Parse
(typeof(ResourceTypeCode), typeName);
system\security\permissions\filedialogpermission.cs (1)
87
access = (FileDialogPermissionAccess)Enum.
Parse
(typeof(FileDialogPermissionAccess), accessXml);
system\security\permissions\hostprotectionpermission.cs (1)
283
Resources = (HostProtectionResource)Enum.
Parse
( typeof( HostProtectionResource ), resources );
system\security\permissions\isolatedstoragepermission.cs (1)
251
m_allowed = (IsolatedStorageContainment)Enum.
Parse
( typeof( IsolatedStorageContainment ), allowed );
system\security\permissions\keycontainerpermission.cs (2)
570
KeyContainerPermissionFlags flags = (KeyContainerPermissionFlags) Enum.
Parse
(typeof(KeyContainerPermissionFlags), strFlags);
627
flags = (KeyContainerPermissionFlags) Enum.
Parse
(typeof(KeyContainerPermissionFlags), strAttrValue);
system\security\permissions\reflectionpermission.cs (1)
304
m_flags = (ReflectionPermissionFlag)Enum.
Parse
( typeof( ReflectionPermissionFlag ), flags );
system\security\permissions\securitypermission.cs (1)
311
m_flags = (SecurityPermissionFlag)Enum.
Parse
( typeof( SecurityPermissionFlag ), flags );
system\security\permissions\uipermission.cs (2)
355
m_windowFlag = (UIPermissionWindow)Enum.
Parse
( typeof( UIPermissionWindow ), window );
359
m_clipboardFlag = (UIPermissionClipboard)Enum.
Parse
( typeof( UIPermissionClipboard ), clipboard );
system\security\permissions\zoneidentitypermission.cs (2)
283
SecurityZone = (SecurityZone)Enum.
Parse
( typeof( SecurityZone ), eZone );
289
int enm = (int)Enum.
Parse
( typeof( SecurityZone ), eZone );
system\security\permissiontoken.cs (1)
319
this.m_type = (PermissionTokenType) Enum.
Parse
(typeof(PermissionTokenType), elRoot.Attribute("Type"));
system\security\policy\filecodegroup.cs (1)
185
m_access = (FileIOPermissionAccess) Enum.
Parse
(typeof(FileIOPermissionAccess), access);
system\security\policy\policystatement.cs (2)
376
m_attributes = (PolicyStatementAttribute)Enum.
Parse
( typeof( PolicyStatementAttribute ), strAttributes );
453
m_attributes = (PolicyStatementAttribute)Enum.
Parse
( typeof( PolicyStatementAttribute ), strAttributes );
system\security\policy\zonemembershipcondition.cs (1)
207
m_zone = (SecurityZone)Enum.
Parse
( typeof( SecurityZone ), eZone );
PresentationBuildTasks (2)
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (1)
93
_task = (UidTask)Enum.
Parse
(typeof(UidTask), _taskAsString);
Framework\System\Windows\SystemResourceKey.cs (1)
394
srkId = (SystemResourceKeyID)Enum.
Parse
(typeof(SystemResourceKeyID), srkField);
PresentationCore (3)
Core\CSharp\System\Windows\Input\CursorConverter.cs (1)
114
CursorType ct = (CursorType)Enum.
Parse
(typeof(CursorType), text);
Core\CSharp\System\Windows\Input\InputScopeConverter.cs (1)
122
sn = (InputScopeNameValue)Enum.
Parse
(typeof(InputScopeNameValue), stringSource);
Core\CSharp\System\Windows\Input\InputScopeNameConverter.cs (1)
109
nameValue = (InputScopeNameValue)Enum.
Parse
(typeof(InputScopeNameValue), stringSource);
PresentationFramework (1)
src\Framework\System\Windows\SystemResourceKey.cs (1)
394
srkId = (SystemResourceKeyID)Enum.
Parse
(typeof(SystemResourceKeyID), srkField);
System (9)
compmod\system\componentmodel\EnumConverter.cs (1)
275
value = Enum.
Parse
(type, field.Name);
compmod\system\diagnostics\TraceSource.cs (3)
89
internalSwitch.Level = (SourceLevels) Enum.
Parse
(typeof(SourceLevels), sourceElement.SwitchValue);
193
internalSwitch.Level = (SourceLevels) Enum.
Parse
(typeof(SourceLevels), sourceElement.SwitchValue);
206
internalSwitch.Level = (SourceLevels) Enum.
Parse
(typeof(SourceLevels), sourceElement.SwitchValue);
compmod\system\security\permissions\AspNetHostingPermission.cs (1)
228
_level = (AspNetHostingPermissionLevel) Enum.
Parse
(typeof(AspNetHostingPermissionLevel), level);
compmod\system\security\permissions\ResourcePermissionBase.cs (1)
505
permissionAccess = (int) Enum.
Parse
(PermissionAccessType, accessString);
net\System\Net\Configuration\UriSectionReader.cs (1)
238
GenericUriParserOptions genericUriParserOptions = (GenericUriParserOptions)Enum.
Parse
(
security\system\security\permissions\storepermission.cs (1)
136
StorePermissionFlags flags = (StorePermissionFlags) Enum.
Parse
(typeof(StorePermissionFlags), strFlags);
security\system\security\permissions\typedescriptorpermission.cs (1)
210
TypeDescriptorPermissionFlags flags = (TypeDescriptorPermissionFlags)Enum.
Parse
(typeof(TypeDescriptorPermissionFlags), strFlags);
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Converters\ArgumentToExpressionConverter.cs (1)
42
direction = (ArgumentDirection)Enum.
Parse
(typeof(ArgumentDirection), directionString);
System.Activities.Presentation\System\Activities\Presentation\Converters\ArgumentToExpressionModelItemConverter.cs (1)
51
direction = (ArgumentDirection)Enum.
Parse
(typeof(ArgumentDirection), directionString);
System.Configuration (1)
System\Configuration\GenericEnumConverter.cs (1)
61
result = Enum.
Parse
(_enumType, value);
System.Data (3)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\ArgumentToExpressionConverter.cs (1)
42
direction = (ArgumentDirection)Enum.
Parse
(typeof(ArgumentDirection), directionString);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\ArgumentToExpressionModelItemConverter.cs (1)
51
direction = (ArgumentDirection)Enum.
Parse
(typeof(ArgumentDirection), directionString);
fx\src\data\System\Data\DataViewManager.cs (1)
124
dataViewSettingsCollection[table].RowStateFilter = (DataViewRowState)Enum.
Parse
(typeof(DataViewRowState),r.Value);
System.Data.Entity (4)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (1)
2112
Convert.ChangeType(Enum.
Parse
(clrEnumType, edmEnumTypeMember.Name), clrEnumType.GetEnumUnderlyingType(), CultureInfo.InvariantCulture)))
System\Data\EntityModel\SchemaObjectModel\TypeElement.cs (1)
199
_primitiveType.PrimitiveTypeKind = (PrimitiveTypeKind)Enum.
Parse
(typeof(PrimitiveTypeKind), value);
System\Data\Metadata\Edm\EnumType.cs (1)
105
Convert.ChangeType(Enum.
Parse
(clrType, name), clrType.GetEnumUnderlyingType(), CultureInfo.InvariantCulture)));
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (1)
304
Enum.
Parse
(enumType, ospaceSortedEnumMemberNamesEnumerator.Current), enumUnderlyingType, CultureInfo.InvariantCulture)))
System.Data.Linq (5)
DbConvert.cs (1)
95
return Enum.
Parse
(toType, text);
Mapping\MappingSource.cs (2)
599
cm.UpdateCheck = (updateCheck == null) ? UpdateCheck.Always : (UpdateCheck)Enum.
Parse
(typeof(UpdateCheck), updateCheck);
601
cm.AutoSync = (autoSync == null) ? AutoSync.Default : (AutoSync)Enum.
Parse
(typeof(AutoSync), autoSync);
parent\DbmlShared\Mapping.cs (2)
401
set { this.updateCheck = (value == null) ? UpdateCheck.Always : (UpdateCheck)Enum.
Parse
(typeof(UpdateCheck), value); }
411
set { this.autoSync = (value != null) ? (AutoSync)Enum.
Parse
(typeof(AutoSync), value) : AutoSync.Default; }
System.Data.SqlXml (1)
System\Xml\Xsl\QIL\QilXmlReader.cs (1)
431
types[i] = XmlQueryTypeFactory.Type((XmlTypeCode)Enum.
Parse
(typeof(XmlTypeCode), codes[i]), strict);
System.Drawing (1)
commonui\System\Drawing\Printing\PrintingPermission.cs (1)
215
printingLevel = (PrintingPermissionLevel)Enum.
Parse
(typeof(PrintingPermissionLevel), printing);
System.Messaging (1)
System\Messaging\MessageQueuePermission.cs (1)
178
permissionAccess = permissionAccess | (int)Enum.
Parse
(typeof(MessageQueuePermissionAccess), currentAccess);
System.Runtime.Remoting (2)
channels\sinks\binaryformattersinks.cs (1)
336
_formatterSecurityLevel = (TypeFilterLevel) Enum.
Parse
(typeof(TypeFilterLevel), (string)entry.Value);
channels\sinks\soapformattersinks.cs (1)
388
_formatterSecurityLevel = (TypeFilterLevel) Enum.
Parse
(typeof(TypeFilterLevel), (string)entry.Value);
System.Security (1)
system\security\permissions\dataprotectionpermission.cs (1)
142
DataProtectionPermissionFlags flags = (DataProtectionPermissionFlags) Enum.
Parse
(typeof(DataProtectionPermissionFlags), strFlags);
System.ServiceModel (13)
System\ServiceModel\Administration\AppDomainInstanceProvider.cs (1)
143
SourceLevels newLevel = (SourceLevels)Enum.
Parse
(typeof(SourceLevels), (string)instance.GetProperty(AdministrationStrings.TraceLevel));
System\ServiceModel\Channels\WindowsStreamSecurityBindingElement.cs (1)
156
windowsBindingElement.ProtectionLevel = (ProtectionLevel)Enum.
Parse
(typeof(ProtectionLevel), protectionLevelString);
System\ServiceModel\ComIntegration\ChannelCredentials.cs (11)
108
StoreLocation location = (StoreLocation)Enum.
Parse
(typeof(StoreLocation), storeLocation);
109
X509RevocationMode mode = (X509RevocationMode)Enum.
Parse
(typeof(X509RevocationMode), revocationMode);
113
validationMode = (X509CertificateValidationMode)Enum.
Parse
(typeof(X509CertificateValidationMode), certificationValidationMode);
132
StoreLocation location = (StoreLocation)Enum.
Parse
(typeof(StoreLocation), storeLocation);
133
StoreName name = (StoreName)Enum.
Parse
(typeof(StoreName), storeName);
134
X509FindType type = (X509FindType)Enum.
Parse
(typeof(X509FindType), findType);
161
X509KeyStorageFlags flags = (X509KeyStorageFlags)Enum.
Parse
(typeof(X509KeyStorageFlags), keyStorageFlags);
182
StoreLocation location = (StoreLocation)Enum.
Parse
(typeof(StoreLocation), storeLocation);
183
StoreName name = (StoreName)Enum.
Parse
(typeof(StoreName), storeName);
184
X509FindType type = (X509FindType)Enum.
Parse
(typeof(X509FindType), findType);
210
X509KeyStorageFlags flags = (X509KeyStorageFlags)Enum.
Parse
(typeof(X509KeyStorageFlags), keyStorageFlags);
System.Web (3)
Configuration\SessionStateSection.cs (1)
468
iTemp = (int)Enum.
Parse
(enumType, s);
Security\ADMembershipProvider.cs (1)
596
_LegacyPasswordCompatibilityMode = (MembershipPasswordCompatibilityMode) Enum.
Parse
(typeof(MembershipPasswordCompatibilityMode), temp);
Security\SQLMembershipProvider.cs (1)
191
_LegacyPasswordCompatibilityMode = (MembershipPasswordCompatibilityMode)Enum.
Parse
(typeof(MembershipPasswordCompatibilityMode), temp);
System.Web.DataVisualization (4)
Common\Annotation\AnnotationBase.cs (1)
3316
switch ((AxisName)Enum.
Parse
(typeof(AxisName), axisType))
Common\DataManager\DataPoint.cs (1)
2912
DeleteCustomProperty((CommonCustomProperties)Enum.
Parse
(typeof(CommonCustomProperties), commonName));
Common\General\ChartGraphics.cs (1)
362
hatch = (HatchStyle)Enum.
Parse
(typeof(HatchStyle),hatchStyle.ToString());
Common\Utilities\XmlSerializer.cs (1)
3101
objValue = Enum.
Parse
(pi.PropertyType, reader.ReadString());
System.Web.Services (1)
System\Web\Services\Protocols\Scalars.cs (1)
49
return Enum.
Parse
(type, value);
System.Windows.Forms (1)
winforms\Managed\System\WinForms\KeysConverter.cs (1)
181
obj = Enum.
Parse
(typeof(Keys), tokens[i]);
System.Windows.Forms.DataVisualization (4)
Common\Annotation\AnnotationBase.cs (1)
3316
switch ((AxisName)Enum.
Parse
(typeof(AxisName), axisType))
Common\DataManager\DataPoint.cs (1)
2912
DeleteCustomProperty((CommonCustomProperties)Enum.
Parse
(typeof(CommonCustomProperties), commonName));
Common\General\ChartGraphics.cs (1)
362
hatch = (HatchStyle)Enum.
Parse
(typeof(HatchStyle),hatchStyle.ToString());
Common\Utilities\XmlSerializer.cs (1)
3101
objValue = Enum.
Parse
(pi.PropertyType, reader.ReadString());
System.Workflow.Activities (2)
Designers\StateDesignerConnector.cs (2)
311
DesignerEdges sourceEdge = (DesignerEdges)Enum.
Parse
(typeof(DesignerEdges), constructionArguments["SourceConnectionEdge"] as string);
322
DesignerEdges targetEdge = (DesignerEdges)Enum.
Parse
(typeof(DesignerEdges), constructionArguments["TargetConnectionEdge"] as string);
System.Workflow.ComponentModel (4)
AuthoringOM\Compiler\TypeSystem\AttributeInfo.cs (1)
194
return Enum.
Parse
(requestedType, parseableValue);
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (2)
226
DesignerEdges sourceEdge = (DesignerEdges)Enum.
Parse
(typeof(DesignerEdges), constructionArguments["SourceConnectionEdge"] as string);
237
DesignerEdges targetEdge = (DesignerEdges)Enum.
Parse
(typeof(DesignerEdges), constructionArguments["TargetConnectionEdge"] as string);
AuthoringOM\Design\Themes.cs (1)
3260
return Enum.
Parse
(context.PropertyDescriptor.PropertyType, (string)value);
System.Workflow.Runtime (3)
Tracking\TrackingProfileSerializer.cs (3)
476
point.MatchingLocation.Events.Add((TrackingWorkflowEvent)Enum.
Parse
(typeof(TrackingWorkflowEvent), reader.ReadString()));
522
events.Add((ActivityExecutionStatus)Enum.
Parse
(typeof(ActivityExecutionStatus), status));
613
condition.Operator = (ComparisonOperator)Enum.
Parse
(typeof(ComparisonOperator), op);
WindowsBase (4)
Base\System\Security\Permissions\MediaPermission.cs (3)
420
_mediaPermissionAudio = (MediaPermissionAudio)Enum.
Parse
(typeof(MediaPermissionAudio), audio );
431
_mediaPermissionVideo = (MediaPermissionVideo)Enum.
Parse
(typeof(MediaPermissionVideo), video );
442
_mediaPermissionImage = (MediaPermissionImage)Enum.
Parse
(typeof(MediaPermissionImage), image );
Base\System\Security\Permissions\WebBrowserPermission.cs (1)
280
_webBrowserPermissionLevel = (WebBrowserPermissionLevel)Enum.
Parse
(typeof(WebBrowserPermissionLevel), level);