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