7 overrides of IsGenericType
mscorlib (4)
system\reflection\emit\generictypeparameterbuilder.cs (1)
181public override bool IsGenericType { get { return false; } }
system\reflection\emit\typebuilder.cs (1)
1607 public override bool IsGenericType { get { return m_inst != null; } }
system\reflection\emit\typebuilderinstantiation.cs (1)
204public override bool IsGenericType { get { return true; } }
system\rttype.cs (1)
4285public override bool IsGenericType
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1098public override bool IsGenericType { get { return _baseReflectionType.IsGenericType; } }
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1098public override bool IsGenericType { get { return _baseReflectionType.IsGenericType; } }
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
530public override bool IsGenericType
462 references to IsGenericType
Microsoft.Activities.Build (1)
Microsoft\Activities\Build\Utilities.cs (1)
100(type.BaseType.IsGenericType && type.BaseType.GetGenericTypeDefinition() == typeof(Activity<>))))
mscorlib (37)
system\delegate.cs (3)
77if (target.IsGenericType && target.ContainsGenericParameters) 260if (currentType.IsGenericType && 439if (target.IsGenericType && target.ContainsGenericParameters)
system\diagnostics\eventing\eventsource.cs (1)
2102|| (args[i] == null && (!(pType.IsGenericType && pType.GetGenericTypeDefinition() == typeof(Nullable<>))))
System\Diagnostics\Eventing\TraceLogging\Statics.cs (1)
531isGeneric = type.IsGenericType;
system\nullable.cs (1)
138if( nullableType.IsGenericType && !nullableType.IsGenericTypeDefinition) {
system\reflection\emit\aqnbuilder.cs (1)
175if (rootType.IsGenericType && (!rootType.IsGenericTypeDefinition || format == Format.ToString))
system\reflection\emit\constructorbuilder.cs (1)
257if (DeclaringType.IsGenericType)
system\reflection\emit\modulebuilder.cs (8)
497Contract.Assert(!type.IsGenericType || type.IsGenericTypeDefinition, "Must not have generic arguments."); 685if (method.DeclaringType.IsGenericType) 741if (method.DeclaringType.IsGenericType) 1712if ((type.IsGenericType && (!type.IsGenericTypeDefinition || !getGenericDefinition)) || 1989|| (methodInfoUnbound.DeclaringType != null && methodInfoUnbound.DeclaringType.IsGenericType)) 2015(method.DeclaringType == null || !method.DeclaringType.IsGenericType)) 2132if (field.DeclaringType != null && field.DeclaringType.IsGenericType) 2165if (field.DeclaringType != null && field.DeclaringType.IsGenericType)
system\reflection\emit\signaturehelper.cs (1)
376else if (clsArgument.IsGenericType && (!clsArgument.IsGenericTypeDefinition || !lastWasGenericInst))
system\reflection\emit\typebuilder.cs (1)
520if (!(destType.IsGenericType && destType.GetGenericTypeDefinition() == typeof(Nullable<>)))
system\reflection\fieldinfo.cs (1)
46if (declaringType != null && declaringType.IsGenericType)
system\reflection\methodbase.cs (1)
70if (declaringType != null && declaringType.IsGenericType)
system\reflection\module.cs (1)
725if (declaringType.IsGenericType || declaringType.IsArray)
system\rttype.cs (1)
3171if (IsSzArray && ifaceType.IsGenericType)
system\runtime\interopservices\marshal.cs (6)
221if (t.IsGenericType) 980if (structureType.IsGenericType) 2095if (t.IsGenericType) 2305if (m.DeclaringType.IsGenericType) 2348if (type.IsGenericType) 2617if (t.IsGenericType)
system\runtime\interopservices\windowsruntime\clrireferenceimpl.cs (1)
430if (type.IsGenericType &&
system\runtime\remoting\message.cs (2)
552if (!(paramType.IsGenericType && paramType.GetGenericTypeDefinition() == typeof(Nullable<>))) 567if (!(pt.IsGenericType && pt.GetGenericTypeDefinition() == typeof(Nullable<>)))
system\runtime\remoting\realproxy.cs (1)
546if (!(paramType.IsGenericType && paramType.GetGenericTypeDefinition() == typeof(Nullable<>)))
system\runtime\serialization\formatterservices.cs (1)
522if (!type.IsGenericType) {
system\type.cs (4)
998if (IsGenericType && !IsGenericTypeDefinition) 1199if (!IsGenericType) 1351if(IsGenericType && !IsGenericTypeDefinition){ 1608else if (IsGenericType)
PresentationBuildTasks (7)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (5)
2251if (genericName.Length > 0 || t.IsGenericType) 2296if (t.IsGenericType) 2325if (refType == null || !refType.IsGenericType || !refType.IsGenericTypeDefinition || typeArgsList == null) 2408Debug.Assert(_typeArgsList == null || (baseClass.IsGenericType && baseClass.IsGenericTypeDefinition)); 2409Debug.Assert(_typeArgsList != null || !baseClass.IsGenericType);
Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
869string fullName = owner.IsGenericType ? owner.Namespace + "." + owner.Name : owner.FullName;
Shared\System\Windows\Markup\ReflectionHelper.cs (1)
106return (type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(Nullable<>)));
PresentationFramework (7)
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (1)
1464if (type.IsGenericType)
src\Framework\System\Windows\Data\BindingExpression.cs (1)
1369if (targetType.IsGenericType && targetType.GetGenericTypeDefinition() == typeof(Nullable<>))
src\Framework\System\Windows\Data\BindingExpressionBase.cs (1)
1615if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>))
src\Framework\System\Windows\Markup\BamlRecordReader.cs (1)
3796return t.IsGenericType && t.GetGenericTypeDefinition() == NullableType;
src\Framework\System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
720if (interfaceType.IsGenericType)
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (1)
168if (type.IsGenericType)
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
869string fullName = owner.IsGenericType ? owner.Namespace + "." + owner.Name : owner.FullName;
System (2)
compmod\system\codedom\CodeTypeReference.cs (1)
107if (type.IsGenericType && !type.ContainsGenericParameters) {
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (1)
1392if (callingType.IsGenericType && callingType.GetGenericTypeDefinition() == typeof(Nullable<>))
System.Activities (26)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (1)
350if (type.IsGenericType)
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (1)
1475if (type.IsGenericType)
System\Activities\Activity.cs (1)
1472if (propertyDescriptor.PropertyType.IsGenericType)
System\Activities\ActivityUtilities.cs (10)
130if (propertyType.IsGenericType) 188if (type.IsGenericType) 202if (interfaceType.IsGenericType && 230if (type.IsGenericType) 254if (interfaceType.IsGenericType) 305if (propertyType.IsGenericType) 341if (propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == variableGenericType) 353if (propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == variableGenericType) 363if (type.IsGenericType && type.GetGenericTypeDefinition() == locationGenericType) 487if (sourceType.IsGenericType)
System\Activities\Debugger\DebugManager.cs (1)
486(activity.GetType().IsGenericType && activity.GetType().GetGenericTypeDefinition() == typeof(ParallelForEach<>));
System\Activities\DynamicUpdate\ArgumentInfo.cs (1)
302if (type.IsGenericType && !type.IsGenericTypeDefinition)
System\Activities\ExpressionUtilities.cs (3)
137else if (method.Name == "Get" && declaringType.IsGenericType) 203else if (method.Name == "Get" && declaringType.IsGenericType) 1821if (targetObjectType.IsGenericType)
System\Activities\RuntimeArgument.cs (3)
198Fx.Assert(this.bindingProperty.PropertyType.IsGenericType, "We only support arguments that are generic types in our reflection walk."); 226if (property.Name == this.Name && property.PropertyType.IsGenericType) 252if (targetProperty.PropertyType.IsGenericType)
System\Activities\Validation\ActivityValidationServices.cs (1)
523if (currentType.IsGenericType)
System\Activities\XamlIntegration\ActivityWithResultConverter.cs (1)
101Fx.Assert(this.valueType.IsGenericType && this.valueType.GetGenericArguments().Length == 1, "Should only get Location<T> here");
System\Activities\XamlIntegration\ActivityXamlServices.cs (1)
508if (schemaContextType.IsGenericType || schemaContextType.IsGenericTypeDefinition)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (1)
1421if (resultType.IsGenericType)
System\Activities\XamlIntegration\TypeConverterBase.cs (1)
105while (!targetType.IsGenericType ||
System.Activities.Core.Presentation (5)
System\Activities\Core\Presentation\GenericFlowSwitchHelper.cs (2)
149return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(FlowSwitch<>); 508Fx.Assert(propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == typeof(IDictionary<,>), "Property type should be IDictonary<T, FlowNode>");
System\Activities\Core\Presentation\MorphHelpers.cs (1)
45Type expressionGenericType = expressionType.IsGenericType ? expressionType.GetGenericTypeDefinition() : null;
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (1)
502if (this.UnderlyingArgumentType.IsGenericType)
System\ServiceModel\Activities\Presentation\ServiceContractImporter.cs (1)
47return t => t.IsDefined(typeof(ServiceContractAttribute), true) && !t.IsGenericType;
System.Activities.Presentation (74)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\TypeNameHelper.cs (1)
31if (!type.IsGenericType && !type.IsArray)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ActivityTemplateFactoryBuilderReader.cs (2)
215Type targetType = underlyingType.IsGenericType ? underlyingType.GetGenericArguments()[0] : null; 276return xamlType.UnderlyingType == typeof(ActivityTemplateFactory) || (xamlType.UnderlyingType.IsGenericType && xamlType.UnderlyingType.GetGenericTypeDefinition() == typeof(ActivityTemplateFactory<>));
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (1)
25if (property.PropertyType.IsGenericType)
System.Activities.Presentation\System\Activities\Presentation\ActivityDesigner.cs (1)
278string iconKey = this.ModelItem.ItemType.IsGenericType ? this.ModelItem.ItemType.GetGenericTypeDefinition().Name : this.ModelItem.ItemType.Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\GenericTypeParameterConverter.cs (4)
86if (type.IsGenericType) 100if (containerType.IsGenericType) 111if (resultType.IsGenericType) 128if (arg.IsGenericType)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\EditorUtilities.cs (1)
97if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Nullable<>))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (2)
123if (editor == null && property.PropertyType.IsGenericType) 149if (property.Parent.ItemType.IsGenericType)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelUtilities.cs (4)
178if (!type.IsGenericType) 185if (interfaceType.IsGenericType && 205if (!type.IsGenericType) 212if (interfaceType.IsGenericType &&
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (4)
181&& realCachedType.IsGenericType 551if (objectType.IsGenericType && !objectType.IsGenericTypeDefinition) 1098public override bool IsGenericType { get { return _baseReflectionType.IsGenericType; } } 1570if (type.IsGenericType && !type.IsGenericTypeDefinition && !string.IsNullOrEmpty(memberName))
System.Activities.Presentation\System\Activities\Presentation\Converters\ArgumentToExpressionConverter.cs (1)
65if (expression.ResultType.IsGenericType)
System.Activities.Presentation\System\Activities\Presentation\Converters\VisualBasicValueSearchableStringConverter.cs (1)
22if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(VisualBasicValue<>))
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (1)
694if (type.IsGenericType && type.GetGenericTypeDefinition().Equals(disallowedType))
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (4)
256else if (allowedItemType.IsGenericTypeDefinition && draggedType.IsGenericType) 261else if (allowedItemType.IsGenericType && draggedType.IsGenericTypeDefinition) 266else if (allowedItemType.IsGenericType && draggedType.IsGenericType && draggedType.ContainsGenericParameters)
System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (6)
41Type expressionArgumentType = expressionType.IsGenericType ? expressionType.GetGenericArguments()[0] : typeof(object); 42bool isLiteral = expressionType.IsGenericType ? Type.Equals(typeof(Literal<>), expressionType.GetGenericTypeDefinition()) : false; 74else if (expressionType.IsGenericType && 155return expressionType.IsGenericType && typeof(Location<>) == expressionType.GetGenericTypeDefinition(); 176if (expressionType.IsGenericType) 213if (expressionType.IsGenericType)
System.Activities.Presentation\System\Activities\Presentation\FeatureManager.cs (1)
41if (modelType.IsGenericType)
System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
56if (!argumentAccessorsGeneratorFound && activityType.IsGenericType && !activityType.IsGenericTypeDefinition)
System.Activities.Presentation\System\Activities\Presentation\Model\AttachedPropertiesService.cs (1)
40if (modelItemType.IsGenericType)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (5)
1124if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(IDictionary<,>)) 1131if (type.IsGenericType && 1132type.GetGenericArguments()[0].IsGenericType && 1142if (type.IsGenericType && 1143type.GetGenericArguments()[0].IsGenericType &&
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (2)
258if (type.IsGenericType) 436if (type.IsGenericType)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (3)
181if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(IList<>)) 191if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(IDictionary<,>)) 882if (currentItem.ItemType.IsGenericType && currentItem.ItemType.GetGenericTypeDefinition() == typeof(Action<>))
System.Activities.Presentation\System\Activities\Presentation\Model\ModelUtilities.cs (2)
23modelItem.Parent.Parent.Parent.ItemType.IsGenericType && 35return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(ModelItemKeyValuePair<,>);
System.Activities.Presentation\System\Activities\Presentation\Model\MorphHelper.cs (1)
50if (extension == null && propertyType.IsGenericType)
System.Activities.Presentation\System\Activities\Presentation\SQM\ActivityUsageCounter.cs (1)
124string typeName = activityType.IsGenericType ? activityType.Name : activityType.FullName;
System.Activities.Presentation\System\Activities\Presentation\TypeUtilities.cs (3)
46if (candidate.IsGenericType && candidate.GetGenericTypeDefinition() != typeof(Nullable<>)) 89if (interfaceType.IsGenericType) 105if (current.IsGenericType)
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (2)
907bool isModelItemKeyValuePair = parent.ItemType.IsGenericType && 958else if (typeOfActivityWithValidationError.IsGenericType && !typeOfActivityWithValidationError.IsGenericTypeDefinition)
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (4)
996if (inArgumentTypeReference.IsAssignableFrom(argumentType) && argumentType.IsGenericType) 1000else if (outArgumentTypeReference.IsAssignableFrom(argumentType) && argumentType.IsGenericType) 1004else if (inOutArgumentTypeReference.IsAssignableFrom(argumentType) && argumentType.IsGenericType) 1198return this.GetArgumentDirection() != PropertyKind.Property || !type.IsGenericType || !typeof(Argument).IsAssignableFrom(type);
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemModelItemViewModel.cs (2)
333if (modelItemType.IsGenericType) 465else if (property.IsDictionary && property.PropertyType.IsGenericType)
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (1)
440else if (property.IsDictionary && property.PropertyType.IsGenericType)
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (2)
901if (!variableContainer.ItemType.IsGenericType || 917if (!variableContainer.ItemType.IsGenericType ||
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
1287if (expressionType.IsGenericType)
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicReferenceValidationFeature.cs (1)
22modelType.IsGenericType && (modelType.GetGenericTypeDefinition() == VisualBasicReferenceType),
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicValueValidationFeature.cs (1)
22modelType.IsGenericType && (modelType.GetGenericTypeDefinition() == VisualBasicValueType),
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewManager.cs (1)
108if (type.IsGenericType)
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (2)
128if (attribute == null && type.IsGenericType) 152if (type.IsGenericType && Type.Equals(designerType, typeof(ActivityDesigner)))
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
1113if (itemType.IsGenericType)
System.Activities.Presentation\System\Activities\Presentation\Xaml\ActivityBuilderHelper.cs (1)
69if (propertyType.IsGenericType)
System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (2)
213(objectType != null && objectType.IsGenericType && 988(type.IsGenericType &&
System.AddIn (2)
System\Addin\Hosting\AddInStore.cs (1)
556if (hostViewOfAddIn.IsGenericType == true)
System\Addin\MiniReflection\TypeInfo.cs (1)
192_isGeneric = type.ContainsGenericParameters || type.IsGenericType || type.GetGenericArguments().Length > 0;
System.ComponentModel.DataAnnotations (2)
DataAnnotations\CustomValidationAttribute.cs (1)
280if (t.IsValueType && (!t.IsGenericType || t.GetGenericTypeDefinition() != typeof(Nullable<>))) {
DataAnnotations\Validator.cs (1)
303(destinationType.IsGenericType && destinationType.GetGenericTypeDefinition() == typeof(Nullable<>));
System.Core (11)
Microsoft\Scripting\Actions\CallSite.cs (1)
266if (target.IsGenericType && IsSimpleSignature(invoke, out args)) {
Microsoft\Scripting\Ast\TypeUtils.cs (5)
51return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>); 300if (!IsDelegate(source) || !IsDelegate(dest) || !source.IsGenericType || !dest.IsGenericType) 620if (type.IsGenericType && AreEquivalent(type.GetGenericTypeDefinition(), definition)) { 708if (t.IsGenericType) {
Microsoft\Scripting\Compiler\ILGen.cs (1)
513if (dt != null && dt.IsGenericType) {
System\Linq\SequenceQuery.cs (2)
281if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Lookup<,>.Grouping)) 287if (iType.IsGenericType && iType.GetGenericTypeDefinition() == typeof(IEnumerable<>))
System\Linq\TypeHelper.cs (2)
21if (type.IsGenericType && type.GetGenericTypeDefinition() == definition) 35return type != null && type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>);
System.Data (73)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\TypeNameHelper.cs (1)
31if (!type.IsGenericType && !type.IsArray)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ActivityTemplateFactoryBuilderReader.cs (1)
215Type targetType = underlyingType.IsGenericType ? underlyingType.GetGenericArguments()[0] : null;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (1)
25if (property.PropertyType.IsGenericType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDesigner.cs (1)
278string iconKey = this.ModelItem.ItemType.IsGenericType ? this.ModelItem.ItemType.GetGenericTypeDefinition().Name : this.ModelItem.ItemType.Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\GenericTypeParameterConverter.cs (4)
86if (type.IsGenericType) 100if (containerType.IsGenericType) 111if (resultType.IsGenericType) 128if (arg.IsGenericType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\EditorUtilities.cs (1)
97if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Nullable<>))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (2)
123if (editor == null && property.PropertyType.IsGenericType) 149if (property.Parent.ItemType.IsGenericType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelUtilities.cs (4)
178if (!type.IsGenericType) 185if (interfaceType.IsGenericType && 205if (!type.IsGenericType) 212if (interfaceType.IsGenericType &&
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (4)
181&& realCachedType.IsGenericType 551if (objectType.IsGenericType && !objectType.IsGenericTypeDefinition) 1098public override bool IsGenericType { get { return _baseReflectionType.IsGenericType; } } 1570if (type.IsGenericType && !type.IsGenericTypeDefinition && !string.IsNullOrEmpty(memberName))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\VisualBasicValueSearchableStringConverter.cs (1)
22if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(VisualBasicValue<>))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (1)
694if (type.IsGenericType && type.GetGenericTypeDefinition().Equals(disallowedType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (4)
256else if (allowedItemType.IsGenericTypeDefinition && draggedType.IsGenericType) 261else if (allowedItemType.IsGenericType && draggedType.IsGenericTypeDefinition) 266else if (allowedItemType.IsGenericType && draggedType.IsGenericType && draggedType.ContainsGenericParameters)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (6)
41Type expressionArgumentType = expressionType.IsGenericType ? expressionType.GetGenericArguments()[0] : typeof(object); 42bool isLiteral = expressionType.IsGenericType ? Type.Equals(typeof(Literal<>), expressionType.GetGenericTypeDefinition()) : false; 74else if (expressionType.IsGenericType && 155return expressionType.IsGenericType && typeof(Location<>) == expressionType.GetGenericTypeDefinition(); 176if (expressionType.IsGenericType) 213if (expressionType.IsGenericType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FeatureManager.cs (1)
41if (modelType.IsGenericType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
56if (!argumentAccessorsGeneratorFound && activityType.IsGenericType && !activityType.IsGenericTypeDefinition)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\AttachedPropertiesService.cs (1)
40if (modelItemType.IsGenericType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (5)
1124if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(IDictionary<,>)) 1131if (type.IsGenericType && 1132type.GetGenericArguments()[0].IsGenericType && 1142if (type.IsGenericType && 1143type.GetGenericArguments()[0].IsGenericType &&
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (2)
258if (type.IsGenericType) 436if (type.IsGenericType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (3)
181if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(IList<>)) 191if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(IDictionary<,>)) 882if (currentItem.ItemType.IsGenericType && currentItem.ItemType.GetGenericTypeDefinition() == typeof(Action<>))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelUtilities.cs (2)
23modelItem.Parent.Parent.Parent.ItemType.IsGenericType && 35return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(ModelItemKeyValuePair<,>);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\MorphHelper.cs (1)
50if (extension == null && propertyType.IsGenericType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\SQM\ActivityUsageCounter.cs (1)
124string typeName = activityType.IsGenericType ? activityType.Name : activityType.FullName;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\TypeUtilities.cs (3)
46if (candidate.IsGenericType && candidate.GetGenericTypeDefinition() != typeof(Nullable<>)) 89if (interfaceType.IsGenericType) 105if (current.IsGenericType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (2)
907bool isModelItemKeyValuePair = parent.ItemType.IsGenericType && 958else if (typeOfActivityWithValidationError.IsGenericType && !typeOfActivityWithValidationError.IsGenericTypeDefinition)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (4)
996if (inArgumentTypeReference.IsAssignableFrom(argumentType) && argumentType.IsGenericType) 1000else if (outArgumentTypeReference.IsAssignableFrom(argumentType) && argumentType.IsGenericType) 1004else if (inOutArgumentTypeReference.IsAssignableFrom(argumentType) && argumentType.IsGenericType) 1198return this.GetArgumentDirection() != PropertyKind.Property || !type.IsGenericType || !typeof(Argument).IsAssignableFrom(type);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemModelItemViewModel.cs (2)
333if (modelItemType.IsGenericType) 465else if (property.IsDictionary && property.PropertyType.IsGenericType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (1)
440else if (property.IsDictionary && property.PropertyType.IsGenericType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (2)
901if (!variableContainer.ItemType.IsGenericType || 917if (!variableContainer.ItemType.IsGenericType ||
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
1287if (expressionType.IsGenericType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicReferenceValidationFeature.cs (1)
22modelType.IsGenericType && (modelType.GetGenericTypeDefinition() == VisualBasicReferenceType),
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicValueValidationFeature.cs (1)
22modelType.IsGenericType && (modelType.GetGenericTypeDefinition() == VisualBasicValueType),
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewManager.cs (1)
108if (type.IsGenericType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (2)
128if (attribute == null && type.IsGenericType) 152if (type.IsGenericType && Type.Equals(designerType, typeof(ActivityDesigner)))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
1113if (itemType.IsGenericType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ActivityBuilderHelper.cs (1)
69if (propertyType.IsGenericType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (2)
213(objectType != null && objectType.IsGenericType && 988(type.IsGenericType &&
fx\src\data\System\Data\Common\DataStorage.cs (1)
468return ((StorageType.Empty == typeCode) && dataType.IsGenericType && (dataType.GetGenericTypeDefinition() == typeof(System.Nullable<>)));
System.Data.DataSetExtensions (1)
System\Data\DataRowExtensions.cs (1)
206if (type.IsGenericType && !type.IsGenericTypeDefinition && (typeof(Nullable<>) == type.GetGenericTypeDefinition()))
System.Data.Entity (33)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (1)
1847if (type.IsGenericType && typeof(Nullable<>).Equals(type.GetGenericTypeDefinition()))
System\Data\Common\EntityUtil.cs (2)
151(collectionType.IsGenericType && typeof(ICollection<>).IsAssignableFrom(collectionType.GetGenericTypeDefinition())) ? 957if (destinationType.IsValueType && destinationType.IsGenericType && (typeof(Nullable<>) == destinationType.GetGenericTypeDefinition()))
System\Data\Common\Internal\Materialization\Translator.cs (1)
831if (valueType.IsGenericType && valueType.GetGenericTypeDefinition() == typeof(CompensatingCollection<>))
System\Data\Common\Utils\Boolean\IdentifierService.cs (1)
33if (identifierType.IsGenericType &&
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (2)
233if (realType.IsGenericType && (typeof(Nullable<>) == realType.GetGenericTypeDefinition())) 325if (realType.IsGenericType && (typeof(Nullable<>) == realType.GetGenericTypeDefinition()))
System\Data\Metadata\ObjectItemCollection.cs (1)
205if (type.IsGenericType)
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (5)
105if (clrType.IsGenericType) 180if (type.IsGenericType) 278Debug.Assert(!clrType.IsGenericType, "Generic type is not supported"); 722!(type.IsGenericType && 734if (type.IsGenericType)
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (2)
464!(type.IsGenericType && 476if (type.IsGenericType)
System\Data\Objects\ELinq\ExpressionConverter.cs (2)
528fromClrType.IsGenericType && toClrType.IsGenericType &&
System\Data\Objects\ELinq\InitializerFacet.cs (2)
220Debug.Assert(ClrType.IsGenericType && 237Debug.Assert(ClrType.IsGenericType &&
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (1)
283if (declaringType.IsGenericType && declaringType.GetGenericTypeDefinition() == typeof(List<>))
System\Data\Objects\ELinq\MethodCallTranslator.cs (4)
338declaringType.IsGenericType && 349if (argumentType.IsGenericType && (typeof(IQueryable<>) == argumentType.GetGenericTypeDefinition() || typeof(IOrderedQueryable<>) == argumentType.GetGenericTypeDefinition())) 351Debug.Assert(convertExpression.Type.IsGenericType && typeof(ObjectQuery<>) == convertExpression.Type.GetGenericTypeDefinition(), "MethodCall with internal MergeAs/IncludeSpan method was not constructed by LINQ to Entities?"); 736if (!clrReturnType.IsGenericType)
System\Data\Objects\ELinq\ReflectionUtil.cs (1)
479if (type.IsGenericType)
System\Data\Objects\ELinq\Translator.cs (3)
224if (propertyInfo.DeclaringType.IsGenericType) 366if (propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == typeof(EntityCollection<>)) 484if (candidateType.IsGenericType &&
System\Data\Objects\ELinq\TypeSystem.cs (4)
32(type.IsGenericType && 158if (seqType.IsGenericType) 217if (test.DeclaringType.IsInterface && test.DeclaringType.IsGenericType && test.DeclaringType.GetGenericTypeDefinition() == match) 225if (testInterface.IsGenericType && testInterface.GetGenericTypeDefinition() == match)
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
1106if (clrProperty.PropertyType.IsGenericType &&
System.Data.Linq (36)
DataContext.cs (1)
420if (ft.IsGenericType && ft.GetGenericTypeDefinition() == typeof(Table<>)) {
DataShape.cs (1)
242if (mt.IsGenericType) {
DbConvert.cs (1)
180else if (toType.IsGenericType && toType.GetGenericTypeDefinition() == typeof(IQueryable<>)
Mapping\Accessors.cs (1)
28if (!objectType.IsGenericType) {
Mapping\AttributedMetaModel.cs (5)
134if (ft.IsGenericType && ft.GetGenericTypeDefinition() == typeof(Table<>)) { 142if (pt.IsGenericType && pt.GetGenericTypeDefinition() == typeof(Table<>)) { 888else if (attrs.Length <= 1 && mi.ReturnType.IsGenericType && 1253if (entityType.IsGenericType) { 1279if (accessor.Type.IsGenericType) {
Mapping\MappedMetaModel.cs (4)
98if (ft.IsGenericType && ft.GetGenericTypeDefinition() == typeof(Table<>)) { 112if (pt.IsGenericType && pt.GetGenericTypeDefinition() == typeof(Table<>)) { 1158if (clrType.IsGenericType) { 1184if (accessor.Type.IsGenericType) {
parent\DbmlShared\Mapping.cs (2)
482if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) { 531if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>))
SortableBindingList.cs (1)
113|| (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Nullable<>));
SqlClient\Common\SqlFactory.cs (1)
42if (clrType.IsGenericType && clrType.GetGenericTypeDefinition() == typeof(Nullable<>))
SqlClient\Common\TypeSystem.cs (3)
27if (seqType.IsGenericType) { 61return type != null && type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>); 191if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>))
SqlClient\Query\QueryConverter.cs (3)
1189if (returnType.IsGenericType && 1478if (t.IsGenericType && 1860if (memberType.IsGenericType && memberType.GetGenericTypeDefinition() == typeof(Table<>)) {
SqlClient\Query\SqlFormatter.cs (1)
1240if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Nullable<>))
SqlClient\Query\SqlMethodCallConverter.cs (1)
952else if (mc.Method.Name == "GetValueOrDefault" && mc.Method.DeclaringType.IsGenericType
SqlClient\Reader\ObjectReaderCompiler.cs (7)
1077if (memberType.IsGenericType) { 1098else if (memberType.IsGenericType && memberType.GetGenericTypeDefinition() == typeof(EntitySet<>)) { 1158System.Diagnostics.Debug.Assert(memberType.IsGenericType && memberType.GetGenericTypeDefinition() == typeof(EntitySet<>)); 1220System.Diagnostics.Debug.Assert(memberType.IsGenericType && memberType.GetGenericTypeDefinition() == typeof(EntitySet<>)); 1279memberType.IsGenericType && 1571Type genActualType = actualType.IsGenericType ? actualType.GetGenericTypeDefinition() : null; 1572Type genExpectedType = expectedType.IsGenericType ? expectedType.GetGenericTypeDefinition() : null;
SqlClient\SqlBuilder.cs (1)
314return type.IsGenericType && typeof(Nullable<>).IsAssignableFrom(type.GetGenericTypeDefinition());
SqlClient\SqlTypeSystemProvider.cs (3)
1414if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) 1516if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) 1534if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>))
System.Data.Services (11)
parent\Client\System\Data\Services\Client\Common.cs (1)
53if (type.IsGenericType)
System\Data\Services\Providers\BaseServiceProvider.cs (2)
686return m.IsGenericType && m.GetGenericTypeDefinition() == typeof(IQueryable<>); 696return m.IsGenericType && m.GetGenericTypeDefinition() == typeof(IEnumerable<>);
System\Data\Services\Providers\BasicExpandProvider.cs (3)
1226p[0].ParameterType.IsGenericType && 1227p[1].ParameterType.IsGenericType) 1230return functionParameter.IsGenericType && functionParameter.GetGenericArguments().Length == 2;
System\Data\Services\Providers\ReflectionServiceProvider.cs (3)
201!property.PropertyType.IsGenericType) 984if (type.IsGenericType) 1035if (type.IsGenericType)
System\Data\Services\WebUtil.cs (2)
877return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>); 1346return inputType.IsGenericType && WebUtil.GenericExpandedWrapperTypes.SingleOrDefault(x => x.Type == inputType.GetGenericTypeDefinition()) != null;
System.Data.Services.Client (13)
System\Data\Services\Client\ALinq\ExpressionWriter.cs (1)
267if (m.Member.Name == "Value" && m.Member.DeclaringType.IsGenericType
System\Data\Services\Client\ALinq\ReflectionUtil.cs (1)
491if (type.IsGenericType)
System\Data\Services\Client\ALinq\ResourceBinder.cs (3)
834ue.Type.IsGenericType && 1272else if (mce.Method.DeclaringType.IsGenericType && 2062return nex.Type.IsGenericType && WebUtil.IsDataServiceCollectionType(nex.Type.GetGenericTypeDefinition());
System\Data\Services\Client\ALinq\TypeSystem.cs (1)
202if (seqType.IsGenericType)
System\Data\Services\Client\AtomMaterializer.cs (1)
414if (type.IsGenericType && WebUtil.IsDataServiceCollectionType(type.GetGenericTypeDefinition()))
System\Data\Services\Client\Binding\BindingEntityInfo.cs (1)
140if (type.IsGenericType)
System\Data\Services\Client\Binding\BindingUtils.cs (1)
45if (collectionType.IsGenericType && WebUtil.IsDataServiceCollectionType(collectionType.GetGenericTypeDefinition()))
System\Data\Services\Client\ClientType.cs (2)
370return !type.IsValueType || (type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(Nullable<>))); 684return type.IsGenericType && (type.GetGenericTypeDefinition() == genericTypeDefinition) && !type.ContainsGenericParameters;
System\Data\Services\Client\Common.cs (1)
53if (type.IsGenericType)
System\Data\Services\Client\Util.cs (1)
626return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>);
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
120(type.IsGenericType &&
System.Runtime.Serialization (35)
System\Runtime\Serialization\ClassDataContract.cs (1)
1399if (!type.IsGenericType || !type.ContainsGenericParameters)
System\Runtime\Serialization\CollectionDataContract.cs (7)
836if (type.IsGenericType) 902return t.IsGenericType && (t.GetGenericTypeDefinition() == typeof(ArraySegment<>)); 945Type interfaceTypeToCheck = type.IsGenericType ? type.GetGenericTypeDefinition() : type; 952if (type.IsGenericType) 1022Type interfaceTypeToCheck = interfaceType.IsGenericType ? interfaceType.GetGenericTypeDefinition() : interfaceType; 1052itemType = knownInterfaceType.IsGenericType ? knownInterfaceType.GetGenericArguments()[0] : Globals.TypeOfObject; 1220Type typeToCheck = type.IsGenericType ? type.GetGenericTypeDefinition() : type;
System\Runtime\Serialization\DataContract.cs (10)
1328if (itemType.IsGenericType) 1345while (type.IsGenericType && type.GetGenericTypeDefinition() == Globals.TypeOfNullable) 1355while (type.IsGenericType && type.GetGenericTypeDefinition() == Globals.TypeOfNullable) 1458if (type.IsGenericType && !type.IsGenericTypeDefinition) 1571if (type.IsGenericType && !type.IsGenericTypeDefinition) 1659if (type.IsGenericType) 1828if (!type.IsGenericType) 2020(type.IsGenericType && 2191if (rootType.IsGenericType) 2222if (t.IsGenericType && !IsOpenGenericType(t))
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
519if (itemType.IsGenericType && (itemType.GetGenericTypeDefinition() == Globals.TypeOfKeyValue))
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
320if (collectionDataContract.ItemType.IsGenericType
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (2)
523while (type.IsGenericType && type.GetGenericTypeDefinition() == Globals.TypeOfNullable) 773while (keyType.IsGenericType && keyType.GetGenericTypeDefinition() == Globals.TypeOfNullable)
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (3)
442if (interfaceType.IsGenericType 666bool isNullableOfT = (memberType.IsGenericType && 753while (memberType.IsGenericType && memberType.GetGenericTypeDefinition() == Globals.TypeOfNullable)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (2)
185oldItemContract.UnderlyingType.IsGenericType && 395if (collectionContract.ItemType.IsGenericType
System\Runtime\Serialization\SchemaExporter.cs (4)
131if (classDataContract.UnderlyingType.IsGenericType) 273if (clrType.IsGenericType) 366if (collectionDataContract.UnderlyingType.IsGenericType && CollectionDataContract.IsCollectionDataContract(collectionDataContract.UnderlyingType)) 465if (dataContract.UnderlyingType.IsGenericType)
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
479while (type.IsGenericType && type.GetGenericTypeDefinition() == Globals.TypeOfNullable)
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (3)
478if (interfaceType.IsGenericType 643bool isNullableOfT = (memberType.IsGenericType && 731while (memberType.IsGenericType && memberType.GetGenericTypeDefinition() == Globals.TypeOfNullable)
System.ServiceModel (9)
System\ServiceModel\Description\MessageContractExporter.cs (1)
959(type.IsGenericType &&
System\ServiceModel\Description\ServiceReflector.cs (3)
50if (t.IsGenericType || t.ContainsGenericParameters) 906if (method.ReturnType.IsGenericType && method.ReturnType.GetGenericTypeDefinition() == taskTResultType) 923if (methodReturnType.IsGenericType && methodReturnType.GetGenericTypeDefinition() == taskTResultType)
System\ServiceModel\Description\TaskOperationDescriptionValidator.cs (1)
58(parameterType.IsGenericType && parameterType.GetGenericTypeDefinition() == ServiceReflector.IProgressType))
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
484if (type.IsGenericType &&
System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
50if (faultType.IsGenericType && (faultType.GetGenericTypeDefinition() == typeof(FaultException<>)))
System\ServiceModel\MessageHeaderT.cs (1)
101if (headerParameterType.IsGenericType && headerParameterType.GetGenericTypeDefinition() == typeof(MessageHeader<>))
System\ServiceModel\MsmqIntegration\MsmqIntegrationValidationBehavior.cs (1)
106if (type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(MsmqMessage<>)))
System.ServiceModel.Activities (3)
System\ServiceModel\Activities\ContractInferenceHelper.cs (1)
571if (type.IsGenericType && type.GetGenericTypeDefinition() == FaultExceptionType)
System\ServiceModel\Activities\SendMessageContent.cs (1)
248if (argumentType.IsGenericType && argumentType.GetGenericTypeDefinition() == ContractInferenceHelper.FaultExceptionType)
System\ServiceModel\Activities\SendParametersContent.cs (1)
215if (argumentType.IsGenericType && argumentType.GetGenericTypeDefinition() == ContractInferenceHelper.FaultExceptionType)
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\DiscoveryClient.cs (1)
1333if (userStateType.IsGenericType && userStateType.GetGenericTypeDefinition() == TaskAsyncOperationStateType)
System.ServiceModel.Internals (2)
System\Runtime\TypeHelper.cs (2)
307return type.IsGenericType && type.GetGenericTypeDefinition() == NullableType; 589if (type.IsGenericType)
System.ServiceModel.Web (2)
System\ServiceModel\Dispatcher\SingleBodyParameterDataContractMessageFormatter.cs (2)
80while (type.IsGenericType && type.GetGenericTypeDefinition() == TypeOfNullable) 142if (parameterType.IsGenericType && parameterType.IsInterface)
System.Web (8)
ModelBinding\CollectionModelBinderUtil.cs (1)
78if (!modelMetadata.ModelType.IsGenericType || modelMetadata.ModelType.IsGenericTypeDefinition) {
ModelBinding\TypeHelpers.cs (2)
8Func<Type, bool> matchesInterface = t => t.IsGenericType && t.GetGenericTypeDefinition() == interfaceType; 13if (!closedType.IsGenericType) {
UI\TargetFrameworkUtil.cs (1)
511return type.IsGenericType ? type.GetGenericTypeDefinition() : type;
UI\WebControls\ModelDataSourceView.cs (1)
433if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Task<>)) {
UI\WebControls\ObjectDataSourceView.cs (1)
717if (destinationType.IsGenericType && (destinationType.GetGenericTypeDefinition() == typeof(Nullable<>))) {
UI\WebControls\Parameter.cs (1)
329return type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(Nullable<>));
Util\FastPropertyAccessor.cs (1)
274if (declaringType.IsGenericType)
System.Web.DynamicData (2)
DynamicData\ModelProviders\DLinqColumnProvider.cs (1)
128if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(EntitySet<>)) {
DynamicData\ModelProviders\DLinqDataModelProvider.cs (1)
43if (prop.PropertyType.IsGenericType &&
System.Web.Entity (4)
System\Data\WebControls\EntityDataSourceUtil.cs (2)
490if (type.IsGenericType && type.GetGenericTypeDefinition().Equals(typeof(Nullable<>))) 553if (type.IsGenericType && typeof(Nullable<>).IsAssignableFrom(type.GetGenericTypeDefinition()) && !type.ContainsGenericParameters)
System\Data\WebControls\EntityDataSourceView.cs (1)
1737if (valueType.IsGenericType && (valueType.GetGenericTypeDefinition() == typeof(Nullable<>)))
System\Data\WebControls\EntityDataSourceViewSchema.cs (1)
103if (propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == typeof(Nullable<>))
System.Web.Extensions (15)
Script\Serialization\ObjectConverter.cs (3)
453else if (type.IsGenericType && 562type.IsGenericType && 570!(type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>));
Script\Services\ServicesUtilities.cs (2)
80if (type.IsGenericType) { 100if (type.IsGenericType && !type.IsGenericTypeDefinition) {
Script\Services\WebServiceData.cs (2)
348(t.IsGenericType && t.GetGenericArguments().Length > 1) || 388if (t.IsGenericType) {
UI\WebControls\ContextDataSourceView.cs (1)
162if (type.IsGenericType) {
UI\WebControls\DataSourceHelper.cs (1)
167if (destinationType.IsGenericType &&
UI\WebControls\Dynamic.cs (2)
1216if (type.IsGenericType && type.GetGenericTypeDefinition() == generic) return type; 1310return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>);
UI\WebControls\Expressions\ExpressionHelper.cs (1)
18if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) {
UI\WebControls\LinqDataSourceHelper.cs (1)
31if (type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(IEnumerable<>))) {
UI\WebControls\LinqDataSourceView.cs (1)
960if (!(tableType.IsGenericType && tableType.GetGenericArguments().Length == 1 && typeof(ITable).IsAssignableFrom(tableType))) {
UI\WebControls\QueryableDataSourceHelper.cs (1)
94if (type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(IEnumerable<>))) {
System.Windows.Forms (3)
winforms\Managed\System\WinForms\Formatter.cs (1)
457if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) {
winforms\Managed\System\WinForms\ListBindingHelper.cs (2)
513if (type.IsGenericType && !type.IsGenericTypeDefinition) { 521if (curInterface.IsGenericType) {
System.Workflow.Activities (8)
Common\TypeSystemHelpers.cs (1)
309if (type.ContainsGenericParameters || type.IsGenericType)
Rules\CodeDomDecompiler.cs (1)
216if (type.IsGenericType)
Rules\Helpers.cs (2)
64return ((type.IsValueType) && (type.IsGenericType) && (type.GetGenericTypeDefinition().Equals(typeof(Nullable<>)))); 74return ((type.IsValueType) && (!type.IsGenericType) && (type != typeof(string)));
Rules\Parser\Parser.cs (1)
2299if (currentType.IsGenericType && nestedType.IsGenericTypeDefinition)
Rules\Parser\Symbol.cs (1)
181if (type.IsGenericType)
Rules\RuleValidation.cs (2)
3841if (type.IsGenericType) 3860Debug.Assert((!type.IsGenericType || type.IsGenericTypeDefinition) && !type.HasElementType,
System.Workflow.ComponentModel (12)
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (2)
250if (returnType.IsGenericType) 536return this.runtimeType.IsGenericType;
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
784if (type.IsGenericType && !type.IsGenericTypeDefinition)
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (3)
1045if ((type.IsGenericType) && (this.genericParameters.Parameters.Length > 0)) 1092else if (type.IsGenericType) 1138if (type.IsGenericType && !type.IsGenericTypeDefinition)
AuthoringOM\Serializer\CollectionMarkupSerializer.cs (1)
97(collectionType.IsGenericType &&
AuthoringOM\Serializer\DictionarySurrogate.cs (1)
17if (!obj.GetType().IsGenericType || obj.GetType().GetGenericTypeDefinition() != typeof(Dictionary<,>))
AuthoringOM\Serializer\GenericQueueSurrogate.cs (1)
18if (!obj.GetType().IsGenericType || obj.GetType().GetGenericTypeDefinition() != typeof(Queue<>))
AuthoringOM\Serializer\ListSurrogate.cs (1)
18if (!obj.GetType().IsGenericType || obj.GetType().GetGenericTypeDefinition() != typeof(List<>))
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (1)
1236if (propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == typeof(Nullable<>))
Shared\TypeSystemHelpers.cs (1)
308if (type.ContainsGenericParameters || type.IsGenericType)
System.WorkflowServices (1)
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (1)
129if (!type.IsGenericType)
System.Xml (13)
System\Xml\Serialization\CodeIdentifier.cs (1)
205Type[] arguments = t.IsGenericType || t.ContainsGenericParameters ? t.GetGenericArguments() : new Type[0];
System\Xml\Serialization\Compiler.cs (1)
73if (type.IsGenericType) {
System\Xml\Serialization\SoapReflectionImporter.cs (1)
713if (type.IsGenericType && typeName.IndexOf('{') >= 0) {
System\Xml\Serialization\Types.cs (3)
861return t.IsGenericType && (t.GetGenericTypeDefinition() == typeof(ArraySegment<>)); 865if (type.IsGenericType) { 885else if (t.IsGenericType) {
System\Xml\Serialization\XmlReflectionImporter.cs (1)
848if (type.IsGenericType && typeName.IndexOf('{') >= 0) {
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (2)
199if (type.IsGenericType || type.ContainsGenericParameters && DynamicAssemblies.IsTypeDynamic(type.GetGenericArguments())) 352if (type.IsGenericType || type.ContainsGenericParameters && DynamicAssemblies.IsTypeDynamic(type.GetGenericArguments()))
System\Xml\Serialization\XmlSerializationILGen.cs (2)
230if (type.IsGenericType || type.ContainsGenericParameters) 436if (type.IsGenericType || type.ContainsGenericParameters)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
2834Debug.Assert(!localA.LocalType.IsGenericType || (localA.LocalType.GetGenericArguments().Length == 1 && localA.LocalType.GetGenericArguments()[0].IsAssignableFrom(elementType)));
System\Xml\Serialization\XmlSerializationWriter.cs (1)
3264else if (type.IsGenericType)
WindowsBase (2)
Base\System\Windows\DependencyProperty.cs (1)
1056!(propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == NullableType))
Shared\System\Windows\Markup\ReflectionHelper.cs (1)
106return (type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(Nullable<>)));