Implemented interface member:
property
IsEnum
System.Runtime.InteropServices._Type.IsEnum
1 override of IsEnum
mscorlib (1)
system\rttype.cs (1)
3984public override bool IsEnum
257 references to IsEnum
mscorlib (39)
system\diagnostics\eventing\eventsource.cs (1)
3188if (p.PropertyType.IsEnum)
system\diagnostics\eventing\StubEnvironment.cs (1)
203public static bool IsEnum(this Type type) { return type.IsEnum; }
System\Diagnostics\Eventing\TraceLogging\Statics.cs (1)
381result = type.IsEnum;
system\enum.cs (13)
377if (!enumType.IsEnum) 611if (!enumType.IsEnum) 631if (valueType.IsEnum) { 1050if (!enumType.IsEnum) 1065if (!enumType.IsEnum) 1080if (!enumType.IsEnum) 1095if (!enumType.IsEnum) 1111if (!enumType.IsEnum) 1127if (!enumType.IsEnum) 1142if (!enumType.IsEnum) 1158if (!enumType.IsEnum) 1172if (!enumType.IsEnum) 1186if (!enumType.IsEnum)
system\oleautbinder.cs (1)
56if (type.IsEnum && srcType.IsPrimitive)
system\reflection\assembly.cs (1)
2816if (!type.IsEnum || !type.IsVisible)
system\reflection\customattribute.cs (3)
840if (value.GetType().IsEnum) 918if (ArgumentType.IsEnum) 939result = String.Format(CultureInfo.CurrentCulture, @"new {0}[{1}] {{ ", elementType.IsEnum ? elementType.FullName : elementType.Name, array.Count);
system\reflection\emit\customattributebuilder.cs (3)
77if (t.IsEnum) 336else if (type.IsEnum) 387if (type.IsEnum)
system\reflection\emit\typebuilder.cs (3)
420if (destType.IsEnum) 1454if (IsEnum) 2064if (m_enumUnderlyingType == null && IsEnum == true)
system\reflection\fieldinfo.cs (1)
470if (fieldType.IsPointer || fieldType.IsEnum || fieldType.IsPrimitive)
system\resources\resourcereader.cs (1)
1317if (t.IsEnum)
system\rttype.cs (1)
4167if (!(valueType.IsEnum || IsIntegerType(valueType)))
system\Runtime\InteropServices\ComEventsMethod.cs (1)
87pi.ParameterType.GetElementType().IsEnum) {
system\runtime\interopservices\windowsruntime\clripropertyvalueimpl.cs (1)
497if (data.GetType().IsEnum) {
system\type.cs (7)
1388if (!IsEnum) 1402if (!IsEnum) 1470if (!IsEnum) 1486if (!IsEnum) 1494if (valueType.IsEnum) 1540if (!IsEnum) 1546if (!(valueType.IsEnum || Type.IsIntegerType(valueType)))
PresentationBuildTasks (5)
Base\System\Windows\Markup\TypeConverterHelper.cs (1)
170if (type.IsEnum)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1747else if (typeToConvertTo.IsEnum)
Framework\System\Windows\Markup\BamlMapTable.cs (1)
1413if (converterOrSerializerType == null && attributeType.IsEnum)
Framework\System\Windows\Markup\BamlRecords.cs (1)
2604if (ValueType != null && ValueType.IsEnum)
Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
809if (propType.IsEnum && attribValue != string.Empty)
PresentationFramework (12)
src\Framework\MS\Internal\TraceData.cs (1)
257if (type.IsPrimitive || type.IsEnum)
src\Framework\System\Windows\Controls\DataGridColumn.cs (1)
1171if (propertyType.IsEnum)
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
1605if (propertyType.IsEnum)
src\Framework\System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
264if (converterType.IsEnum)
src\Framework\System\Windows\Markup\BamlMapTable.cs (3)
274Debug.Assert(type.IsEnum); 561Debug.Assert(propType.IsEnum); 1413if (converterOrSerializerType == null && attributeType.IsEnum)
src\Framework\System\Windows\Markup\BamlReader.cs (1)
1076if (!_propertyDP.PropertyType.IsEnum)
src\Framework\System\Windows\Markup\BamlRecords.cs (2)
2604if (ValueType != null && ValueType.IsEnum) 2839if (propertyType.IsEnum)
src\Framework\System\Windows\Markup\SetterTriggerConditionValueConverter.cs (1)
134if (xamlProperty.Type.UnderlyingType.IsEnum && schemaContext is Baml2006.Baml2006SchemaContext)
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
809if (propType.IsEnum && attribValue != string.Empty)
System (4)
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (2)
187if (defaultValue != null && PropertyType.IsEnum && PropertyType.GetEnumUnderlyingType() == defaultValue.GetType()) { 323if (defaultValue != null && PropertyType.IsEnum && PropertyType.GetEnumUnderlyingType() == defaultValue.GetType()) {
compmod\system\diagnostics\traceutils.cs (1)
125if (type.IsEnum)
compmod\system\security\permissions\ResourcePermissionBase.cs (1)
107if (!value.IsEnum)
System.Activities (7)
System\Activities\Debugger\DebugInfo.cs (1)
414else if (t.IsEnum)
System\Activities\Expressions\FieldReference.cs (1)
38if (typeof(TOperand).IsEnum)
System\Activities\Expressions\FieldValue.cs (1)
35if (typeof(TOperand).IsEnum)
System\Activities\Expressions\PropertyReference.cs (1)
44if (typeof(TOperand).IsEnum)
System\Activities\Expressions\PropertyValue.cs (1)
34if (typeof(TOperand).IsEnum)
System\Activities\Expressions\ValueTypeFieldReference.cs (1)
42if (typeof(TOperand).IsEnum)
System\Activities\Expressions\ValueTypePropertyReference.cs (1)
52if (typeof(TOperand).IsEnum)
System.Activities.Core.Presentation (4)
System\Activities\Core\Presentation\CaseKeyBox.ViewModel.cs (1)
177bool isEnum = this.ValueType.IsEnum;
System\Activities\Core\Presentation\GenericFlowSwitchHelper.cs (2)
310else if (type.IsEnum) 519return typeArgument.IsEnum || typeof(string).IsAssignableFrom(typeArgument)
System\ServiceModel\Activities\Presentation\ContentCorrelationTypeExpander.xaml.cs (1)
239return ((type.IsPrimitive) || type.IsEnum || PrimitiveTypesInXPath.Any((item => item == type))
System.Activities.Presentation (8)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\EditorUtilities.cs (1)
102return genericArgs[0].IsEnum;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagPanel.cs (2)
39Fx.Assert(flagType == null || flagType.IsEnum, "FlagType should be null or enum"); 112Fx.Assert(flagType != null && flagType.IsEnum, "FlagType should be enum");
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagStringConverter.cs (1)
29Fx.Assert(flagType != null && flagType.IsEnum, "TargetType should be enum");
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyContainer.cs (1)
681return property != null && property.PropertyType != null && property.PropertyType.IsEnum &&
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (1)
502if (itemType.IsPrimitive || itemType.IsEnum || itemType.Equals(typeof(String)))
System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyDescriptor.cs (1)
106if (itemType.IsPrimitive || itemType.IsEnum || itemType.Equals(typeof(String)))
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
425if (type.IsPrimitive || computedValue is string || type.IsEnum || computedValue is Uri)
System.ComponentModel.DataAnnotations (3)
DataAnnotations\EnumDataTypeAttribute.cs (3)
26if (!this.EnumType.IsEnum) { 39if (valueType.IsEnum && this.EnumType != valueType) { 60if (valueType.IsEnum) {
System.Configuration (1)
System\Configuration\ConfigurationProperty.cs (1)
426if (_type.IsEnum) {
System.Core (15)
Microsoft\Scripting\Ast\BinaryExpression.cs (1)
1043TypeUtils.GetNonNullableType(left.Type).IsEnum)) {
Microsoft\Scripting\Ast\ParameterExpression.cs (1)
47if (!type.IsEnum) {
Microsoft\Scripting\Ast\TypeUtils.cs (9)
60if (!type.IsEnum) { 81if (type.IsEnum) { 102if (!type.IsEnum) { 120if (!type.IsEnum) { 133if (!type.IsEnum) { 183if (instanceType.IsEnum && AreReferenceAssignable(targetType, typeof(System.Enum))) { 360if (type.IsEnum) { 425if (nnType == typeof(bool) || IsNumeric(nnType) || nnType.IsEnum) { 593if (source.IsEnum && destination == typeof(System.Enum))
Microsoft\Scripting\Compiler\ILGen.cs (3)
167} else if (type.IsEnum) { 214if (type.IsEnum) { 992Debug.Assert(!type.IsEnum);
Microsoft\Scripting\Compiler\LambdaCompiler.Binary.cs (1)
324if (!type.IsPrimitive && type.IsValueType && !type.IsEnum) {
System.Data (12)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\EditorUtilities.cs (1)
102return genericArgs[0].IsEnum;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagPanel.cs (2)
39Fx.Assert(flagType == null || flagType.IsEnum, "FlagType should be null or enum"); 112Fx.Assert(flagType != null && flagType.IsEnum, "FlagType should be enum");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagStringConverter.cs (1)
29Fx.Assert(flagType != null && flagType.IsEnum, "TargetType should be enum");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyContainer.cs (1)
681return property != null && property.PropertyType != null && property.PropertyType.IsEnum &&
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (1)
502if (itemType.IsPrimitive || itemType.IsEnum || itemType.Equals(typeof(String)))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyDescriptor.cs (1)
106if (itemType.IsPrimitive || itemType.IsEnum || itemType.Equals(typeof(String)))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
425if (type.IsPrimitive || computedValue is string || type.IsEnum || computedValue is Uri)
fx\src\data\System\Data\Common\DbConnectionStringCommon.cs (4)
428else if (value.GetType().IsEnum) 553else if (value.GetType().IsEnum) 747else if (value.GetType().IsEnum) 816else if (value.GetType().IsEnum) {
System.Data.Entity (26)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (2)
765if((value.GetType().IsEnum || clrEnumUnderlyingType != value.GetType()) && !ClrEdmEnumTypesMatch(edmEnumType, value.GetType())) 2086Debug.Assert(clrEnumType.IsEnum, "non enum clr type.");
System\Data\Common\CommandTrees\ValueExpressions.cs (2)
33Debug.Assert(!value.GetType().IsEnum || TypeSemantics.IsEnumerationType(resultType), "value is an enum while the result type is not of enum type."); 34Debug.Assert(Helper.AsPrimitive(resultType.EdmType).ClrEquivalentType == (value.GetType().IsEnum ? value.GetType().GetEnumUnderlyingType() : value.GetType()),
System\Data\Common\Internal\Materialization\Shaper.cs (1)
830if (underlyingType != null && underlyingType.IsEnum)
System\Data\Common\Internal\Materialization\Translator.cs (1)
2093if (nonNullableType.IsEnum && nonNullableType != type)
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (1)
469if (principalType.IsEnum)
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
548Debug.Assert(clrEnumType.IsEnum);
System\Data\Metadata\Edm\EnumType.cs (2)
90Debug.Assert(clrType.IsEnum, "enum type expected"); 197Debug.Assert(clrType.IsEnum, "enum type expected");
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (1)
81if (!clrType.IsEnum) // Enums return the TypeCode of their underlying type
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (2)
474if ((Nullable.GetUnderlyingType(property.PropertyType) ?? property.PropertyType).IsEnum) 659(Nullable.GetUnderlyingType(clrProperty.PropertyType) ?? clrProperty.PropertyType).IsEnum,
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (5)
42if (type.IsValueType && !type.IsEnum) 125if (Helper.IsEnumType(cspaceType) ^ type.IsEnum) 219Debug.Assert(enumType.IsEnum, "enum type expected"); 247Debug.Assert(enumType.IsEnum, "expected enum OSpace type"); 283Debug.Assert(enumType.IsEnum, "expected enum OSpace type");
System\Data\Objects\ELinq\ExpressionConverter.cs (2)
1021if (nonNullableType.IsEnum && this.EdmItemCollection.EdmVersion < XmlConstants.EdmVersionForV3) 1056if(nonNullableType.IsEnum && ClrProviderManifest.Instance.TryGetPrimitiveTypeKind(nonNullableType.GetEnumUnderlyingType(), out primitiveTypeKind))
System\Data\Objects\ELinq\Translator.cs (1)
144if (nonNullableLinqType.IsEnum)
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
1258propertyType.IsEnum)
System\Data\Objects\ObjectContext.cs (2)
3172(unwrappedTElement.IsEnum && MetadataHelper.TryDetermineCSpaceModelType(unwrappedTElement.GetEnumUnderlyingType(), this.MetadataWorkspace, out modelEdmType))) 3332if (_entityParameter.Value != DBNull.Value && _objectParameter.MappableType.IsEnum)
System\Data\Query\InternalTrees\ColumnMapFactory.cs (1)
149Type propType = propertyUnderlyingType.IsEnum ? propertyUnderlyingType.GetEnumUnderlyingType() : prop.PropertyType;
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (1)
1885object constValue = op.Value.GetType().IsEnum ?
System.Data.Linq (8)
DbConvert.cs (2)
92else if (toType.IsEnum) { 101else if (fromType.IsEnum) {
SqlClient\Common\TypeSystem.cs (1)
194if (type.IsEnum)
SqlClient\Query\QueryConverter.cs (2)
770|| (nnFromType.IsEnum || nnToType.IsEnum) // any .NET enum type
SqlClient\Reader\ObjectReaderCompiler.cs (3)
2108if (valueType.IsEnum) 2225if (type.IsEnum) { 2285if (type.IsEnum) {
System.Data.Services (6)
System\Data\Services\Parsing\RequestQueryParser.cs (4)
451Debug.Assert(!type.IsEnum, "!type.IsEnum"); 476return GetNonNullableType(type).IsEnum; 658TypeCode sourceCode = sourceType.IsEnum ? TypeCode.Object : Type.GetTypeCode(sourceType); 659TypeCode targetCode = targetType.IsEnum ? TypeCode.Object : Type.GetTypeCode(targetType);
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
1579else if (facetValueType.IsEnum)
System\Data\Services\Providers\ReflectionServiceProvider.cs (1)
413type.IsEnum)
System.Data.SqlXml (2)
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (1)
293if (clrType.IsEnum)
System\Xml\Xsl\Runtime\XsltConvert.cs (1)
371if (clrType.IsEnum) return XmlQueryTypeFactory.DoubleX;
System.IdentityModel (1)
System\IdentityModel\Configuration\StandardRuntimeEnumValidator.cs (1)
22return (type.IsEnum);
System.Runtime.Remoting (2)
metadata\wsdlwriter.cs (2)
1017if (_schemaType != null && !(_schemaType is SimpleSchemaType && ((SimpleSchemaType)_schemaType).Type.IsEnum)) 1144if (type.IsEnum)
System.Runtime.Serialization (9)
System\Runtime\Serialization\ClassDataContract.cs (3)
330SR.GetString((declaringType.IsEnum ? SR.DupEnumMemberValue : SR.DupMemberName), 344if (!childType.IsEnum && !Globals.TypeOfIXmlSerializable.IsAssignableFrom(childType) 364if (type.IsEnum)
System\Runtime\Serialization\CodeGenerator.cs (3)
1050else if (valueType.IsEnum) 1407if (arrayElementType.IsEnum) 1472if (arrayElementType.IsEnum)
System\Runtime\Serialization\DataContract.cs (2)
581else if (type.IsEnum) 799if (type.IsEnum) // Type.GetTypeCode will report Enums as TypeCode.IntXX
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (1)
788else if (keyType.IsEnum)
System.ServiceModel (8)
System\ServiceModel\Configuration\StandardRuntimeEnumValidator.cs (1)
22return (type.IsEnum);
System\ServiceModel\Configuration\StandardRuntimeFlagEnumValidatorAttribute.cs (1)
46if (!value.IsEnum || !hasFlags)
System\ServiceModel\Description\OperationGenerator.cs (1)
1034if (type.IsEnum)
System\ServiceModel\Dispatcher\CodeGenerator.cs (3)
430else if (valueType.IsEnum) 710if (arrayElementType.IsEnum) 738if (arrayElementType.IsEnum)
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (2)
346if (type.IsEnum) 371if (type.IsEnum)
System.ServiceModel.Internals (2)
System\Runtime\TypeHelper.cs (2)
283if (sourceType.IsEnum && destinationType == typeof(Enum)) 565if (type.IsEnum)
System.Web (5)
ModelBinding\ValueProviderResult.cs (1)
63if (destinationType.IsEnum && value is int) {
UI\ControlBuilder.cs (1)
1047if (memberType.IsEnum) {
UI\ObjectStateFormatter.cs (1)
1121if (valueType.IsEnum) {
UI\PropertyConverter.cs (1)
78if (objType.IsEnum) {
UI\WebControls\DataBoundControlHelper.cs (1)
109return (enableEnums && type.IsEnum);
System.Web.DataVisualization (3)
Common\Converters\CustomAttributesConverters.cs (1)
671 else if(this._customAttributeInfo.ValueType.IsEnum)
Common\Utilities\XmlSerializer.cs (2)
2681 else if(obj.GetType().IsEnum) 3098 else if(pi.PropertyType.IsEnum)
System.Web.DynamicData (3)
DynamicData\DynamicDataExtensions.cs (1)
390(column.ColumnType.IsEnum ? column.ColumnType : null);
DynamicData\FieldTemplateFactory.cs (1)
142} else if (column.ColumnType.IsEnum) {
DynamicData\Util\Misc.cs (1)
144Debug.Assert(enumType.IsEnum);
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceUtil.cs (2)
570if (value != null && (type.IsEnum || (IsNullableType(type, out underlyingType) && underlyingType.IsEnum)))
System.Web.Extensions (9)
Script\Serialization\JavaScriptSerializer.cs (1)
480if (type.IsEnum) {
Script\Services\ServicesUtilities.cs (1)
40if (type.IsEnum) {
Script\Services\WebServiceData.cs (1)
375if (t.IsEnum) {
Script\Services\WebServiceTypeData.cs (1)
243if (type.IsEnum) {
UI\WebControls\Dynamic.cs (5)
1338if (type.IsEnum) return 0; 1361return GetNonNullableType(type).IsEnum; 1582if (type.IsEnum) { 1597TypeCode sc = st.IsEnum ? TypeCode.Object : Type.GetTypeCode(st); 1598TypeCode tc = tt.IsEnum ? TypeCode.Object : Type.GetTypeCode(tt);
System.Web.Mobile (2)
UI\MobileControls\Design\MobileControlPersister.cs (1)
570if (propType.IsEnum) {
UI\MobileControls\DeviceSpecificChoice.cs (1)
235else if (type.IsEnum)
System.Web.Services (3)
System\Web\Services\Protocols\Scalars.cs (3)
25else if (value.GetType().IsEnum) 35else if (type.IsEnum) 58if (type.IsEnum) return true;
System.Windows.Forms (6)
winforms\Managed\System\WinForms\AxHost.cs (1)
7148if (this.PropertyType.IsEnum && (value.GetType() != this.PropertyType)) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2EnumConverter.cs (2)
45return destType.IsEnum; 80if (destinationType.IsEnum) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (1)
294if (targetType.IsEnum) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
928else if (lastValue != null && propertyType != null && propertyType.IsEnum && lastValue.GetType().IsPrimitive) { 1376if (!pd.PropertyType.IsEnum) {
System.Windows.Forms.DataVisualization (3)
Common\Converters\CustomAttributesConverters.cs (1)
671 else if(this._customAttributeInfo.ValueType.IsEnum)
Common\Utilities\XmlSerializer.cs (2)
2681 else if(obj.GetType().IsEnum) 3098 else if(pi.PropertyType.IsEnum)
System.Workflow.Activities (17)
Rules\Executor.cs (2)
832if (currentType.IsEnum) 843if (resultType.IsEnum)
Rules\Expressions.cs (3)
2065if (fromType2.IsEnum) 2067canConvert = (toType2.IsEnum) || IsNumeric(toType2); 2069else if (toType2.IsEnum)
Rules\Literal.cs (2)
566if (lhsType0.IsEnum) 637else if (rhsType0.IsEnum)
Rules\RuleValidation.cs (10)
591if (lhsBaseType.IsEnum) 596if (rhsBaseType.IsEnum) 605if ((lhsBaseType.IsEnum) && (rhs.IsEnum)) 607else if (lhsBaseType.IsEnum) 617if (rhsBaseType.IsEnum && lhsBaseType.IsEnum) 622else if (lhsBaseType.IsEnum) 1946if (lhsType.IsEnum) 1978if (rhsType.IsEnum)
System.Workflow.ComponentModel (13)
AuthoringOM\Compiler\TypeSystem\AttributeInfo.cs (1)
176else if (requestedType.IsEnum)
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
579if ((typeArgs.Length == 1) && (this.runtimeType == typeof(Nullable<>)) && !(typeArgs[0].IsEnum))
AuthoringOM\DependencyProperty.cs (1)
245if (propertyType.IsEnum)
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
764return type.IsPrimitive || type.IsEnum || type == typeof(Guid) || type == typeof(IntPtr) || type == typeof(string) || type == typeof(DateTime) || type == typeof(TimeSpan);
AuthoringOM\Serializer\ActivityCodeDomSerializationManager.cs (1)
205if (objectType.IsPrimitive || objectType.IsEnum || objectType == typeof(string) || typeof(Activity).IsAssignableFrom(objectType))
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (8)
303obj.GetType().IsEnum || obj.GetType() == typeof(DateTime) || obj.GetType() == typeof(TimeSpan) || 641obj.GetType() == typeof(DateTime) || obj.GetType() == typeof(TimeSpan) || obj.GetType().IsEnum || 647obj.GetType().IsEnum || obj.GetType() == typeof(Guid)) 1183if (valueType.IsPrimitive || valueType == typeof(System.String) || valueType.IsEnum 1246else if (propertyType.IsEnum) 1273if (type.IsPrimitive || type.IsEnum || type == typeof(System.String)) 1739type == typeof(TimeSpan) || type.IsEnum || type == typeof(Guid)) 1748else if (type.IsPrimitive || type == typeof(decimal) || type == typeof(TimeSpan) || type.IsEnum || type == typeof(Guid))
System.WorkflowServices (1)
System\Workflow\Activities\ReceiveActivity.cs (1)
1399!((methodInfo.ReturnType.IsPrimitive || methodInfo.ReturnType.IsEnum || methodInfo.ReturnType.IsValueType) && !ServiceOperationHelpers.IsNullableType(methodInfo.ReturnType));
System.Xml (9)
System\Xml\Serialization\CodeGenerator.cs (3)
1049else if (valueType.IsEnum) { 1434if (arrayElementType.IsEnum) { 1511if (arrayElementType.IsEnum)
System\Xml\Serialization\Types.cs (2)
507if (type.IsEnum) 757else if (type.IsEnum) {
System\Xml\Serialization\XmlReflectionImporter.cs (1)
1249if (!type.IsEnum) {
System\Xml\Serialization\XmlSerializationReader.cs (1)
1589if (!isPrimitive && !elementType.IsEnum) {
System\Xml\Serialization\XmlSerializationWriter.cs (2)
1195bool needXsiType = t != ambientType && !t.IsEnum; 3119if (type.IsEnum) {
UIAutomationClient (1)
System\Windows\Automation\Text\TextRange.cs (1)
256if (ai.Type.IsEnum && obj is int)
WindowsBase (3)
Base\System\Windows\Markup\TypeConverterHelper.cs (2)
170if (type.IsEnum) 355if (type.IsEnum)
Shared\MS\Utility\TraceProvider.cs (1)
291if (dataType.IsEnum)
XamlBuildTask (3)
Microsoft\Build\Tasks\Xaml\AttributeData.cs (3)
244return type.IsEnum || 255if (type.IsEnum) 343if (type.IsEnum)