86 references to GetName
ComSvcConfig (2)
Options.cs (2)
221
if (string.Equals(argValue, Enum.
GetName
(typeof(Hosting), Hosting.Complus), StringComparison.OrdinalIgnoreCase))
225
else if (string.Equals(argValue, Enum.
GetName
(typeof(Hosting), Hosting.Was), StringComparison.OrdinalIgnoreCase))
mscorlib (11)
system\enum.cs (1)
141
String retval =
GetName
(eT, value);
system\reflection\emit\opcode.cs (1)
270
name = Enum.
GetName
(typeof(OpCodeValues), opCodeValue).ToLowerInvariant().Replace("_", ".");
system\security\permissions\filedialogpermission.cs (1)
166
esd.AddAttribute("Access", Enum.
GetName
(typeof(FileDialogPermissionAccess), access));
system\security\permissions\isolatedstoragepermission.cs (1)
210
esd.AddAttribute( "Allowed", Enum.
GetName
( typeof( IsolatedStorageContainment ), m_allowed ) );
system\security\permissions\uipermission.cs (2)
327
esd.AddAttribute( "Window", Enum.
GetName
( typeof( UIPermissionWindow ), m_windowFlag ) );
331
esd.AddAttribute( "Clipboard", Enum.
GetName
( typeof( UIPermissionClipboard ), m_clipboardFlag ) );
system\security\permissions\zoneidentitypermission.cs (2)
257
esd.AddAttribute( "Zone", Enum.
GetName
( typeof( SecurityZone ), this.SecurityZone ) );
268
child.AddAttribute( "Zone", Enum.
GetName
( typeof( SecurityZone ), (SecurityZone)nEnum ) );
system\security\policy\zonemembershipcondition.cs (1)
172
root.AddAttribute( "Zone", Enum.
GetName
( typeof( SecurityZone ), m_zone ) );
system\security\util\xmlutil.cs (2)
688
return Enum.
GetName
( type, 0 );
698
String sFlag = Enum.
GetName
( type, flag );
PresentationCore (3)
Core\CSharp\System\Windows\Input\Cursor.cs (1)
385
return Enum.
GetName
(typeof(CursorType), _cursorType);
Core\CSharp\System\Windows\Input\InputScopeConverter.cs (1)
158
return Enum.
GetName
(typeof(InputScopeNameValue), ((InputScopeName)inputScope.Names[0]).NameValue);
Core\CSharp\System\Windows\Input\InputScopeNameConverter.cs (1)
144
return Enum.
GetName
(typeof(InputScopeNameValue), inputScopeName.NameValue);
PresentationFramework (3)
src\Framework\System\Windows\SystemKeyConverter.cs (3)
264
return Enum.
GetName
(typeof(SystemResourceKeyID), id) + "Key";
274
string propName = Enum.
GetName
(typeof(SystemResourceKeyID), id) + "Key";
286
return Enum.
GetName
(typeof(SystemResourceKeyID), id);
System (2)
compmod\system\componentmodel\ToolboxItemFilterAttribute.cs (1)
139
return filterString + "," + Enum.
GetName
(typeof(ToolboxItemFilterType), filterType);
compmod\system\security\permissions\AspNetHostingPermission.cs (1)
239
securityElement.AddAttribute("Level", Enum.
GetName
(typeof(AspNetHostingPermissionLevel), _level));
System.Data (1)
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
1382
string sqlContextInfo = Res.GetString(Enum.
GetName
(typeof(SniContext), stateObj.SniContext));
System.Data.Entity (24)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (2)
91
Enum.
GetName
(typeof(PrimitiveTypeKind), valueTypeKind)
93
Enum.
GetName
(typeof(PrimitiveTypeKind), requiredResultType)
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (3)
212
"BuiltInTypeKind", Enum.
GetName
(typeof(BuiltInTypeKind), type.BuiltInTypeKind),
293
"RelationshipMultiplicity", Enum.
GetName
(typeof(RelationshipMultiplicity), end.RelationshipMultiplicity)
359
attrs.Add("DbExpressionKind", Enum.
GetName
(typeof(DbExpressionKind), expr.ExpressionKind));
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (1)
273
return new TreeNode(Enum.
GetName
(typeof(DbExpressionKind), expr.ExpressionKind));
System\Data\Common\CommandTrees\Internal\Validator.cs (1)
164
ThrowInvalid(Strings.Cqt_Validator_InvalidIncorrectDataSpaceMetadata(typeof(TMetadata).Name, Enum.
GetName
(typeof(DataSpace), this.requiredSpace)));
System\Data\Common\CommandTrees\OperatorExpressions.cs (3)
134
"Invalid DbExpressionKind used in DbArithmeticExpression: " + Enum.
GetName
(typeof(DbExpressionKind), kind)
284
"Invalid DbExpressionKind used in DbComparisonExpression: " + Enum.
GetName
(typeof(DbExpressionKind), kind)
374
Debug.Assert(DbExpressionKind.IsOf == this.ExpressionKind || DbExpressionKind.IsOfOnly == this.ExpressionKind, string.Format(CultureInfo.InvariantCulture, "Invalid DbExpressionKind used in DbIsOfExpression: {0}", Enum.
GetName
(typeof(DbExpressionKind), this.ExpressionKind)));
System\Data\Common\QueryCache\CompiledQueryCacheEntry.cs (1)
115
return string.Join("", Enum.
GetName
(typeof(MergeOption), mergeOption), useCSharpNullComparisonBehavior);
System\Data\Common\QueryCache\EntityClientCacheKey.cs (1)
201
return String.Join("|", new string[] { Enum.
GetName
(typeof(CommandType), _commandType), _eSqlStatement, _parametersToken });
System\Data\Common\QueryCache\EntitySqlQueryCacheKey.cs (1)
154
return String.Join("|", new string[] { _defaultContainer, _eSqlStatement, _parametersToken, _includePathsToken, Enum.
GetName
(typeof(MergeOption), _mergeOption) });
System\Data\Common\QueryCache\LinqQueryCacheKey.cs (1)
144
return String.Join("|", new string[] { _expressionKey, _parametersToken, _includePathsToken, Enum.
GetName
(typeof(MergeOption), _mergeOption), _useCSharpNullComparisonBehavior.ToString() });
System\Data\Query\PlanCompiler\CTreeGenerator.cs (4)
634
PlanCompiler.Assert(retExpr != null, string.Format(CultureInfo.InvariantCulture, "Unresolvable Var used in Command: VarType={0}, Id={1}", Enum.
GetName
(typeof(VarType), referencedVar.VarType), referencedVar.Id));
789
PlanCompiler.Assert(resultExpr != null, string.Format(CultureInfo.InvariantCulture, "ArithmeticOp OpType not recognized: {0}", Enum.
GetName
(typeof(OpType), op.OpType)));
897
PlanCompiler.Assert(compExpr != null, string.Format(CultureInfo.InvariantCulture, "ComparisonOp OpType not recognized: {0}", Enum.
GetName
(typeof(OpType), op.OpType)));
956
PlanCompiler.Assert(condExpr != null, string.Format(CultureInfo.InvariantCulture, "ConditionalOp OpType not recognized: {0}", Enum.
GetName
(typeof(OpType), op.OpType)));
System\Data\SqlClient\SqlGen\SqlGenerator.cs (6)
1092
throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedNaNNotSupported(Enum.
GetName
(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Double)));
1096
throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedPositiveInfinityNotSupported(Enum.
GetName
(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Double), typeof(Double).Name));
1100
throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedNegativeInfinityNotSupported(Enum.
GetName
(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Double), typeof(Double).Name));
1113
throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedNaNNotSupported(Enum.
GetName
(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Single)));
1117
throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedPositiveInfinityNotSupported(Enum.
GetName
(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Single), typeof(Single).Name));
1121
throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedNegativeInfinityNotSupported(Enum.
GetName
(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Single), typeof(Single).Name));
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
506
return new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(TypeReference.ForType(type)), Enum.
GetName
(type, value));
System.Data.Linq (1)
DbConvert.cs (1)
103
return Enum.
GetName
(fromType, value);
System.Data.Services.Design (2)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (1)
252
Enum.
GetName
(typeof(StringComparison), this.Generator.LanguageAppropriateStringComparer));
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
466
return new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(TypeReference.ForType(type)), Enum.
GetName
(type, value));
System.Data.SqlXml (3)
System\Xml\Xsl\QIL\QilXmlReader.cs (1)
282
Debug.Assert(r.LocalName == Enum.
GetName
(typeof(QilNodeType), nd.NodeType), "Id '" + id + "' is not not bound to a " + r.LocalName + " forward decl");
System\Xml\Xsl\QIL\QilXmlWriter.cs (2)
198
this.writer.WriteStartElement(Enum.
GetName
(typeof(QilNodeType), n.NodeType));
263
this.writer.WriteStartElement("", Enum.
GetName
(typeof(QilNodeType), node.NodeType), "");
System.Drawing (1)
commonui\System\Drawing\Printing\PrintingPermission.cs (1)
176
securityElement.AddAttribute("Level", Enum.
GetName
(typeof(PrintingPermissionLevel), printingLevel));
System.IdentityModel (1)
System\IdentityModel\Tokens\X509CertificateStoreTokenResolver.cs (1)
37
: this(Enum.
GetName
(typeof(System.Security.Cryptography.X509Certificates.StoreName), storeName), storeLocation)
System.Messaging (1)
System\Messaging\MessageQueuePermission.cs (1)
444
accessStringBuilder.Append(Enum.
GetName
(typeof(MessageQueuePermissionAccess), enumValues[index]));
System.ServiceModel (1)
System\ServiceModel\Security\WSTrustChannel.cs (1)
69
throw IM.DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID3285, Enum.
GetName
(typeof(Operations), _operation)));
System.Web (2)
Compilation\AssemblyBuilder.cs (2)
591
string fieldName = Enum.
GetName
(enumType, set);
598
string fieldName = Enum.
GetName
(enumType, set);
System.Web.DataVisualization (2)
Common\DataManager\DataPoint.cs (1)
3204
return Enum.
GetName
(typeof(CommonCustomProperties), key);
Common\DataManager\DataSeries.cs (1)
846
return Enum.
GetName
(typeof(SeriesChartType), type);
System.Web.DynamicData (1)
DynamicData\Util\Misc.cs (1)
149
Name = Enum.
GetName
(enumType, e),
System.Web.Mobile (15)
UI\MobileControls\Adapters\HtmlMobileTextWriter.cs (1)
1269
Enum.
GetName
(typeof(Alignment), newStyle.Alignment));
UI\MobileControls\Design\Adapters\DesignerAdRotatorAdapter.cs (1)
62
writer.WriteAttribute("align", Enum.
GetName
(typeof(Alignment), alignment));
UI\MobileControls\Design\Adapters\DesignerCalendarAdapter.cs (1)
41
writer.WriteAttribute("align", Enum.
GetName
(typeof(Alignment), alignment));
UI\MobileControls\Design\Adapters\DesignerCommandAdapter.cs (3)
124
writer.WriteAttribute("align", Enum.
GetName
(typeof(Alignment), alignment));
167
writer.WriteAttribute("align", Enum.
GetName
(typeof(Alignment), alignment));
203
writer.WriteAttribute("align", Enum.
GetName
(typeof(Alignment), alignment));
UI\MobileControls\Design\Adapters\DesignerImageAdapter.cs (1)
72
writer.WriteAttribute("align", Enum.
GetName
(typeof(Alignment), alignment));
UI\MobileControls\Design\Adapters\DesignerLabelAdapter.cs (1)
60
writer.WriteAttribute("align", Enum.
GetName
(typeof(Alignment), alignment));
UI\MobileControls\Design\Adapters\DesignerLinkAdapter.cs (1)
57
writer.WriteAttribute("align", Enum.
GetName
(typeof(Alignment), alignment));
UI\MobileControls\Design\Adapters\DesignerTextBoxAdapter.cs (1)
147
writer.Write(";text-align:" + Enum.
GetName
(typeof(Alignment), alignment));
UI\MobileControls\Design\Adapters\DesignerTextViewAdapter.cs (1)
64
writer.WriteAttribute("align", Enum.
GetName
(typeof(Alignment), alignment));
UI\MobileControls\Design\Adapters\DesignerTextWriter.cs (1)
93
Write(";text-align:" + Enum.
GetName
(typeof(Alignment), alignment));
UI\MobileControls\Design\Adapters\DesignerValidationSummaryAdapter.cs (1)
61
writer.WriteAttribute("align", Enum.
GetName
(typeof(Alignment), alignment));
UI\MobileControls\Design\Adapters\DesignerValidatorAdapter.cs (1)
59
writer.WriteAttribute("align", Enum.
GetName
(typeof(Alignment), alignment));
UI\MobileControls\FontInfo.cs (1)
128
String size = (this.Size.Equals(FontSize.NotSet) ? null : Enum.
GetName
(typeof(FontSize), this.Size));
System.Windows.Forms.DataVisualization (2)
Common\DataManager\DataPoint.cs (1)
3204
return Enum.
GetName
(typeof(CommonCustomProperties), key);
Common\DataManager\DataSeries.cs (1)
846
return Enum.
GetName
(typeof(SeriesChartType), type);
System.Workflow.Activities (4)
Conditional.cs (1)
173
return new ValidationError(SR.GetString(SR.Error_DynamicActivity, activity.QualifiedName, Enum.
GetName
(typeof(ActivityExecutionStatus), activity.ExecutionStatus)), ErrorNumbers.Error_DynamicActivity);
EventHandlingScope.cs (2)
250
return new ValidationError(SR.GetString(SR.Error_DynamicActivity2, activity.QualifiedName, Enum.
GetName
(typeof(ActivityExecutionStatus), activity.ExecutionStatus), activity.GetType().FullName), ErrorNumbers.Error_DynamicActivity2);
254
return new ValidationError(SR.GetString(SR.Error_DynamicActivity3, activity.QualifiedName, Enum.
GetName
(typeof(ActivityExecutionStatus), activity.ExecutionStatus), activity.GetType().FullName), ErrorNumbers.Error_DynamicActivity2);
While.cs (1)
187
return new ValidationError(SR.GetString(SR.Error_DynamicActivity2, activity.QualifiedName, Enum.
GetName
(typeof(ActivityExecutionStatus), activity.ExecutionStatus), activity.GetType().FullName), ErrorNumbers.Error_DynamicActivity2);
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\Validation\CompositeActivityValidator.cs (1)
62
return new ValidationError(SR.GetString(SR.Error_DynamicActivity, activity.QualifiedName, Enum.
GetName
(typeof(ActivityExecutionStatus), activity.ExecutionStatus)), ErrorNumbers.Error_DynamicActivity);
WindowsBase (2)
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptionTransform.cs (2)
1158
Enum.
GetName
(typeof(AuthenticationType), AuthenticationType.Windows)))
1165
Enum.
GetName
(typeof(AuthenticationType), AuthenticationType.Passport)))