7 overrides of GetGenericTypeDefinition
mscorlib (4)
system\reflection\emit\generictypeparameterbuilder.cs (1)
195
public override Type
GetGenericTypeDefinition
() { throw new InvalidOperationException(); }
system\reflection\emit\typebuilder.cs (1)
1613
public override Type
GetGenericTypeDefinition
() { if (IsGenericTypeDefinition) return this; if (m_genTypeDef == null) throw new InvalidOperationException(); return m_genTypeDef; }
system\reflection\emit\typebuilderinstantiation.cs (1)
223
public override Type
GetGenericTypeDefinition
() { return m_type; }
system\rttype.cs (1)
4276
public override Type
GetGenericTypeDefinition
()
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1226
public override Type
GetGenericTypeDefinition
()
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1226
public override Type
GetGenericTypeDefinition
()
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
552
public override Type
GetGenericTypeDefinition
()
349 references to GetGenericTypeDefinition
Microsoft.Activities.Build (1)
Microsoft\Activities\Build\Utilities.cs (1)
100
(type.BaseType.IsGenericType && type.BaseType.
GetGenericTypeDefinition
() == typeof(Activity<>))))
mscorlib (18)
system\delegate.cs (1)
261
currentType.
GetGenericTypeDefinition
() == targetType)
system\diagnostics\eventing\eventsource.cs (1)
2102
|| (args[i] == null && (!(pType.IsGenericType && pType.
GetGenericTypeDefinition
() == typeof(Nullable<>))))
System\Diagnostics\Eventing\TraceLogging\Statics.cs (1)
533
return isGeneric && type.
GetGenericTypeDefinition
() == (Type)openType;
system\nullable.cs (1)
140
Type genericType = nullableType.
GetGenericTypeDefinition
();
system\reflection\emit\dynamicilgenerator.cs (1)
1240
Type t = m.DeclaringType.
GetGenericTypeDefinition
();
system\reflection\emit\signaturehelper.cs (1)
380
AddOneArgTypeHelperWorker(clsArgument.
GetGenericTypeDefinition
(), true);
system\reflection\emit\typebuilder.cs (5)
115
if (type.
GetGenericTypeDefinition
() != method.DeclaringType)
146
if (type.
GetGenericTypeDefinition
() != constructor.DeclaringType)
167
if (type.
GetGenericTypeDefinition
() != field.DeclaringType)
520
if (!(destType.IsGenericType && destType.
GetGenericTypeDefinition
() == typeof(Nullable<>)))
1805
Type genericTypeDefinition = m_typeParent.
GetGenericTypeDefinition
();
system\reflection\fieldinfo.cs (1)
49
f.Name, declaringType.
GetGenericTypeDefinition
()));
system\reflection\methodbase.cs (1)
73
m, declaringType.
GetGenericTypeDefinition
()));
system\runtime\interopservices\windowsruntime\clrireferenceimpl.cs (1)
431
type.
GetGenericTypeDefinition
() == typeof(System.Collections.Generic.KeyValuePair<,>))
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)
527
StringBuilder builder = new StringBuilder(type.
GetGenericTypeDefinition
().FullName).Append("[");
PresentationBuildTasks (1)
Shared\System\Windows\Markup\ReflectionHelper.cs (1)
106
return (type.IsGenericType && (type.
GetGenericTypeDefinition
() == typeof(Nullable<>)));
PresentationFramework (5)
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (1)
1466
type = type.
GetGenericTypeDefinition
();
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)
722
Type genericTypeDefinition = interfaceType.
GetGenericTypeDefinition
();
System (1)
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (1)
1392
if (callingType.IsGenericType && callingType.
GetGenericTypeDefinition
() == typeof(Nullable<>))
System.Activities (19)
System\Activities\ActivityUtilities.cs (9)
134
Type genericType = propertyType.
GetGenericTypeDefinition
();
193
if (type.
GetGenericTypeDefinition
() == iDictionaryGenericType)
203
interfaceType.
GetGenericTypeDefinition
() == iDictionaryGenericType)
234
Type localInterface = type.
GetGenericTypeDefinition
();
256
Type localInterface = interfaceType.
GetGenericTypeDefinition
();
309
Type genericType = propertyType.
GetGenericTypeDefinition
();
341
if (propertyType.IsGenericType && propertyType.
GetGenericTypeDefinition
() == variableGenericType)
353
if (propertyType.IsGenericType && propertyType.
GetGenericTypeDefinition
() == variableGenericType)
363
if (type.IsGenericType && type.
GetGenericTypeDefinition
() == locationGenericType)
System\Activities\Debugger\DebugManager.cs (1)
486
(activity.GetType().IsGenericType && activity.GetType().
GetGenericTypeDefinition
() == typeof(ParallelForEach<>));
System\Activities\ExpressionUtilities.cs (3)
139
Type declaringTypeGenericDefinition = declaringType.
GetGenericTypeDefinition
();
205
Type declaringTypeGenericDefinition = declaringType.
GetGenericTypeDefinition
();
1827
Type targetObjectGenericType = targetObjectType.
GetGenericTypeDefinition
();
System\Activities\Location.cs (1)
280
Fx.Assert(typeof(T).
GetGenericTypeDefinition
() == typeof(Location<>), "We should only be calling this with location subclasses.");
System\Activities\Validation\ActivityValidationServices.cs (1)
525
Type genericDefinitionType = currentType.
GetGenericTypeDefinition
();
System\Activities\XamlIntegration\ActivityBuilderXamlWriter.cs (1)
359
&& xamlType.UnderlyingType.
GetGenericTypeDefinition
() == typeof(ActivityBuilder<>))
System\Activities\XamlIntegration\DynamicActivityXamlReader.cs (2)
394
&& this.innerReader.Type.UnderlyingType.
GetGenericTypeDefinition
() == typeof(Activity<>))
754
&& type.UnderlyingType.
GetGenericTypeDefinition
() == typeof(PropertyReferenceExtension<>);
System\Activities\XamlIntegration\TypeConverterBase.cs (1)
106
!(targetType.
GetGenericTypeDefinition
() == baseType))
System.Activities.Core.Presentation (3)
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 (61)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ActivityTemplateFactoryBuilderReader.cs (1)
276
return xamlType.UnderlyingType == typeof(ActivityTemplateFactory) || (xamlType.UnderlyingType.IsGenericType && xamlType.UnderlyingType.
GetGenericTypeDefinition
() == typeof(ActivityTemplateFactory<>));
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignTimeXamlWriter.cs (1)
164
(type.IsGeneric && type.UnderlyingType != null && type.UnderlyingType.
GetGenericTypeDefinition
() == typeof(Activity<>)) ||
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (2)
28
if (property.PropertyType.
GetGenericTypeDefinition
() == typeof(DelegateInArgument<>))
33
else if (property.PropertyType.
GetGenericTypeDefinition
() == typeof(DelegateOutArgument<>))
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\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)
125
Type genericType = property.PropertyType.
GetGenericTypeDefinition
();
151
Type genericType = property.Parent.ItemType.
GetGenericTypeDefinition
();
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelUtilities.cs (2)
186
interfaceType.
GetGenericTypeDefinition
() == typeof(IList<>))
213
interfaceType.
GetGenericTypeDefinition
() == typeof(ICollection<>))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (4)
182
&& t == realCachedType.
GetGenericTypeDefinition
())
553
objectTypeDefinition = objectType.
GetGenericTypeDefinition
();
1228
return _provider.MergeType(_baseReflectionType.
GetGenericTypeDefinition
());
1572
foreach (object attr in AttributeDataCache.GetMetadataStoreAttributes(type.
GetGenericTypeDefinition
(), memberName, _tables))
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)
259
return allowedItemType.Equals(draggedType.
GetGenericTypeDefinition
());
264
return draggedType.Equals(allowedItemType.
GetGenericTypeDefinition
());
269
return allowedItemType.
GetGenericTypeDefinition
() == draggedType.
GetGenericTypeDefinition
();
System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (6)
42
bool isLiteral = expressionType.IsGenericType ? Type.Equals(typeof(Literal<>), expressionType.
GetGenericTypeDefinition
()) : false;
75
(expressionType.
GetGenericTypeDefinition
() == typeof(VariableValue<>) ||
76
expressionType.
GetGenericTypeDefinition
() == typeof(VariableReference<>)))
155
return expressionType.IsGenericType && typeof(Location<>) == expressionType.
GetGenericTypeDefinition
();
178
expressionType = expressionType.
GetGenericTypeDefinition
();
215
expressionType = expressionType.
GetGenericTypeDefinition
();
System.Activities.Presentation\System\Activities\Presentation\FeatureManager.cs (1)
43
InitializeFeature(modelType.
GetGenericTypeDefinition
());
System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
58
argumentAccessorsGeneratorFound = argumentAccessorsGenerators.TryGetValue(activityType.
GetGenericTypeDefinition
(), out argumentAccessorsGenerator);
System.Activities.Presentation\System\Activities\Presentation\Model\AttachedPropertiesService.cs (1)
43
where property.OwnerType.IsAssignableFrom(modelItemType.
GetGenericTypeDefinition
())
System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (1)
45
Type newModelItemType = oldModelItemType.
GetGenericTypeDefinition
().MakeGenericType(value);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (5)
1124
if (type.IsGenericType && type.
GetGenericTypeDefinition
() == typeof(IDictionary<,>))
1133
type.GetGenericArguments()[0].
GetGenericTypeDefinition
() == typeof(KeyValuePair<,>) &&
1134
type.
GetGenericTypeDefinition
() == typeof(IEnumerable<>))
1144
type.GetGenericArguments()[0].
GetGenericTypeDefinition
() == typeof(KeyValuePair<,>) &&
1145
type.
GetGenericTypeDefinition
() == typeof(ICollection<>))
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (2)
260
return (typeof(ErrorActivity<>) == type.
GetGenericTypeDefinition
());
438
Type generictype = type.
GetGenericTypeDefinition
();
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (5)
131
if (type.
GetGenericTypeDefinition
() == typeof(IDictionary<,>))
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<>))
1249
if (type.
GetGenericTypeDefinition
() == typeof(IDictionary<,>))
System.Activities.Presentation\System\Activities\Presentation\Model\ModelUtilities.cs (2)
24
modelItem.Parent.Parent.Parent.ItemType.
GetGenericTypeDefinition
() == typeof(System.Activities.Statements.Switch<>))
35
return type.IsGenericType && type.
GetGenericTypeDefinition
() == typeof(ModelItemKeyValuePair<,>);
System.Activities.Presentation\System\Activities\Presentation\Model\MorphHelper.cs (1)
52
morphExtensions.TryGetValue(propertyType.
GetGenericTypeDefinition
(), out extension);
System.Activities.Presentation\System\Activities\Presentation\TypeUtilities.cs (3)
46
if (candidate.IsGenericType && candidate.
GetGenericTypeDefinition
() != typeof(Nullable<>))
91
if (interfaceType.
GetGenericTypeDefinition
() == parentObjectType)
107
if (current.
GetGenericTypeDefinition
() == parentObjectType)
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (2)
908
parent.ItemType.
GetGenericTypeDefinition
() == typeof(ModelItemKeyValuePair<,>);
960
return this.GetValidationErrorSourceLocator(typeOfActivityWithValidationError.
GetGenericTypeDefinition
());
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemModelItemViewModel.cs (1)
336
modelItemType = this.VisualValue.ItemType.
GetGenericTypeDefinition
();
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
1289
genericExpressionType = expressionType.
GetGenericTypeDefinition
();
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)
110
Type genericTypeDefinition = type.
GetGenericTypeDefinition
();
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (2)
130
attribute = ExtensibilityAccessor.GetAttribute<T>(type.
GetGenericTypeDefinition
());
154
Type genericType = type.
GetGenericTypeDefinition
();
System.Activities.Presentation\System\Activities\Presentation\VisualBasicExpressionMorphHelper.cs (2)
19
Fx.Assert(expression.GetType().
GetGenericTypeDefinition
() == typeof(VisualBasicValue<>) ||
20
expression.GetType().
GetGenericTypeDefinition
() == typeof(VisualBasicReference<>), "VisualBasicExpressionMorphHelper should only apply to VB expression.");
System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (2)
214
objectType.
GetGenericTypeDefinition
() == typeof(ErrorActivity<>));
989
type.
GetGenericTypeDefinition
() == typeof(Activity<>));
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 (8)
Microsoft\Scripting\Ast\TypeUtils.cs (4)
51
return type.IsGenericType && type.
GetGenericTypeDefinition
() == typeof(Nullable<>);
303
Type genericDelegate = source.
GetGenericTypeDefinition
();
305
if (dest.
GetGenericTypeDefinition
() != genericDelegate)
620
if (type.IsGenericType && AreEquivalent(type.
GetGenericTypeDefinition
(), definition)) {
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 (58)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (2)
28
if (property.PropertyType.
GetGenericTypeDefinition
() == typeof(DelegateInArgument<>))
33
else if (property.PropertyType.
GetGenericTypeDefinition
() == typeof(DelegateOutArgument<>))
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\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)
125
Type genericType = property.PropertyType.
GetGenericTypeDefinition
();
151
Type genericType = property.Parent.ItemType.
GetGenericTypeDefinition
();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelUtilities.cs (2)
186
interfaceType.
GetGenericTypeDefinition
() == typeof(IList<>))
213
interfaceType.
GetGenericTypeDefinition
() == typeof(ICollection<>))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (4)
182
&& t == realCachedType.
GetGenericTypeDefinition
())
553
objectTypeDefinition = objectType.
GetGenericTypeDefinition
();
1228
return _provider.MergeType(_baseReflectionType.
GetGenericTypeDefinition
());
1572
foreach (object attr in AttributeDataCache.GetMetadataStoreAttributes(type.
GetGenericTypeDefinition
(), memberName, _tables))
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)
259
return allowedItemType.Equals(draggedType.
GetGenericTypeDefinition
());
264
return draggedType.Equals(allowedItemType.
GetGenericTypeDefinition
());
269
return allowedItemType.
GetGenericTypeDefinition
() == draggedType.
GetGenericTypeDefinition
();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (6)
42
bool isLiteral = expressionType.IsGenericType ? Type.Equals(typeof(Literal<>), expressionType.
GetGenericTypeDefinition
()) : false;
75
(expressionType.
GetGenericTypeDefinition
() == typeof(VariableValue<>) ||
76
expressionType.
GetGenericTypeDefinition
() == typeof(VariableReference<>)))
155
return expressionType.IsGenericType && typeof(Location<>) == expressionType.
GetGenericTypeDefinition
();
178
expressionType = expressionType.
GetGenericTypeDefinition
();
215
expressionType = expressionType.
GetGenericTypeDefinition
();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FeatureManager.cs (1)
43
InitializeFeature(modelType.
GetGenericTypeDefinition
());
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
58
argumentAccessorsGeneratorFound = argumentAccessorsGenerators.TryGetValue(activityType.
GetGenericTypeDefinition
(), out argumentAccessorsGenerator);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\AttachedPropertiesService.cs (1)
43
where property.OwnerType.IsAssignableFrom(modelItemType.
GetGenericTypeDefinition
())
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (1)
45
Type newModelItemType = oldModelItemType.
GetGenericTypeDefinition
().MakeGenericType(value);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (5)
1124
if (type.IsGenericType && type.
GetGenericTypeDefinition
() == typeof(IDictionary<,>))
1133
type.GetGenericArguments()[0].
GetGenericTypeDefinition
() == typeof(KeyValuePair<,>) &&
1134
type.
GetGenericTypeDefinition
() == typeof(IEnumerable<>))
1144
type.GetGenericArguments()[0].
GetGenericTypeDefinition
() == typeof(KeyValuePair<,>) &&
1145
type.
GetGenericTypeDefinition
() == typeof(ICollection<>))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (2)
260
return (typeof(ErrorActivity<>) == type.
GetGenericTypeDefinition
());
438
Type generictype = type.
GetGenericTypeDefinition
();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (5)
131
if (type.
GetGenericTypeDefinition
() == typeof(IDictionary<,>))
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<>))
1249
if (type.
GetGenericTypeDefinition
() == typeof(IDictionary<,>))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelUtilities.cs (2)
24
modelItem.Parent.Parent.Parent.ItemType.
GetGenericTypeDefinition
() == typeof(System.Activities.Statements.Switch<>))
35
return type.IsGenericType && type.
GetGenericTypeDefinition
() == typeof(ModelItemKeyValuePair<,>);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\MorphHelper.cs (1)
52
morphExtensions.TryGetValue(propertyType.
GetGenericTypeDefinition
(), out extension);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\TypeUtilities.cs (3)
46
if (candidate.IsGenericType && candidate.
GetGenericTypeDefinition
() != typeof(Nullable<>))
91
if (interfaceType.
GetGenericTypeDefinition
() == parentObjectType)
107
if (current.
GetGenericTypeDefinition
() == parentObjectType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (2)
908
parent.ItemType.
GetGenericTypeDefinition
() == typeof(ModelItemKeyValuePair<,>);
960
return this.GetValidationErrorSourceLocator(typeOfActivityWithValidationError.
GetGenericTypeDefinition
());
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemModelItemViewModel.cs (1)
336
modelItemType = this.VisualValue.ItemType.
GetGenericTypeDefinition
();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
1289
genericExpressionType = expressionType.
GetGenericTypeDefinition
();
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)
110
Type genericTypeDefinition = type.
GetGenericTypeDefinition
();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (2)
130
attribute = ExtensibilityAccessor.GetAttribute<T>(type.
GetGenericTypeDefinition
());
154
Type genericType = type.
GetGenericTypeDefinition
();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (2)
214
objectType.
GetGenericTypeDefinition
() == typeof(ErrorActivity<>));
989
type.
GetGenericTypeDefinition
() == typeof(Activity<>));
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 (32)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (1)
1847
if (type.IsGenericType && typeof(Nullable<>).Equals(type.
GetGenericTypeDefinition
()))
System\Data\Common\EntityUtil.cs (3)
131
return typeof(ICollection<>).IsAssignableFrom(type.
GetGenericTypeDefinition
()) ||
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)
34
identifierType.
GetGenericTypeDefinition
() == typeof(DomainConstraint<,>))
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\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (3)
107
Type genericType = clrType.
GetGenericTypeDefinition
();
725
type.
GetGenericTypeDefinition
() == typeof(System.Data.Objects.DataClasses.EntityReference<>) ||
726
type.
GetGenericTypeDefinition
() == typeof(System.Nullable<>)
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (2)
467
type.
GetGenericTypeDefinition
() == typeof(System.Data.Objects.DataClasses.EntityReference<>) ||
468
type.
GetGenericTypeDefinition
() == typeof(System.Nullable<>)
System\Data\Objects\ELinq\ExpressionConverter.cs (4)
529
(fromClrType.
GetGenericTypeDefinition
() == typeof(ObjectQuery<>) || fromClrType.
GetGenericTypeDefinition
() == typeof(IOrderedQueryable<>)) &&
530
(toClrType.
GetGenericTypeDefinition
() == typeof(IQueryable<>) || toClrType.
GetGenericTypeDefinition
() == typeof(IOrderedQueryable<>)) &&
System\Data\Objects\ELinq\InitializerFacet.cs (2)
221
typeof(IGrouping<,>).Equals(ClrType.
GetGenericTypeDefinition
()));
238
typeof(IGrouping<,>).Equals(ClrType.
GetGenericTypeDefinition
()));
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (1)
283
if (declaringType.IsGenericType && declaringType.
GetGenericTypeDefinition
() == typeof(List<>))
System\Data\Objects\ELinq\MethodCallTranslator.cs (5)
339
typeof(ObjectQuery<>) == declaringType.
GetGenericTypeDefinition
());
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?");
740
Type genericType = clrReturnType.
GetGenericTypeDefinition
();
System\Data\Objects\ELinq\Translator.cs (3)
228
propertyInfo = propertyInfo.DeclaringType.
GetGenericTypeDefinition
().GetProperty(propertyInfo.Name, BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public);
366
if (propertyType.IsGenericType && propertyType.
GetGenericTypeDefinition
() == typeof(EntityCollection<>))
485
candidateType.
GetGenericTypeDefinition
().Equals(typeof(System.Collections.Generic.ICollection<>)))
System\Data\Objects\ELinq\TypeSystem.cs (3)
33
typeof(Nullable<>) == type.
GetGenericTypeDefinition
()))
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)
1107
clrProperty.PropertyType.
GetGenericTypeDefinition
() == typeof(ICollection<>))
System.Data.Linq (37)
DataContext.cs (1)
420
if (ft.IsGenericType && ft.
GetGenericTypeDefinition
() == typeof(Table<>)) {
DbConvert.cs (1)
180
else if (toType.IsGenericType && toType.
GetGenericTypeDefinition
() == typeof(IQueryable<>)
Mapping\AttributedMetaModel.cs (7)
134
if (ft.IsGenericType && ft.
GetGenericTypeDefinition
() == typeof(Table<>)) {
142
if (pt.IsGenericType && pt.
GetGenericTypeDefinition
() == typeof(Table<>)) {
889
(mi.ReturnType.
GetGenericTypeDefinition
() == typeof(IEnumerable<>) ||
890
mi.ReturnType.
GetGenericTypeDefinition
() == typeof(ISingleResult<>) ||
891
mi.ReturnType.
GetGenericTypeDefinition
() == typeof(IQueryable<>))) {
1254
Type gtype = entityType.
GetGenericTypeDefinition
();
1280
Type gtype = accessor.Type.
GetGenericTypeDefinition
();
Mapping\MappedMetaModel.cs (4)
98
if (ft.IsGenericType && ft.
GetGenericTypeDefinition
() == typeof(Table<>)) {
112
if (pt.IsGenericType && pt.
GetGenericTypeDefinition
() == typeof(Table<>)) {
1159
Type gtype = clrType.
GetGenericTypeDefinition
();
1185
Type gtype = accessor.Type.
GetGenericTypeDefinition
();
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 (2)
61
return type != null && type.IsGenericType && type.
GetGenericTypeDefinition
() == typeof(Nullable<>);
191
if (type.IsGenericType && type.
GetGenericTypeDefinition
() == typeof(Nullable<>))
SqlClient\Query\QueryConverter.cs (4)
1190
(returnType.
GetGenericTypeDefinition
() == typeof(IEnumerable<>) ||
1191
returnType.
GetGenericTypeDefinition
() == typeof(ISingleResult<>))) {
1479
t.
GetGenericTypeDefinition
() == typeof(IGrouping<,>))
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)
953
&& mc.Method.DeclaringType.
GetGenericTypeDefinition
() == typeof(Nullable<>)) {
SqlClient\Reader\ObjectReaderCompiler.cs (8)
1078
Type genType = memberType.
GetGenericTypeDefinition
();
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<>));
1280
(memberType.
GetGenericTypeDefinition
() == typeof(EntityRef<>) ||
1281
memberType.
GetGenericTypeDefinition
() == typeof(Link<>))
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 (5)
parent\Client\System\Data\Services\Client\Common.cs (1)
55
type = type.
GetGenericTypeDefinition
();
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\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 (11)
System\Data\Services\Client\ALinq\ExpressionWriter.cs (1)
268
&& m.Member.DeclaringType.
GetGenericTypeDefinition
() == typeof(Nullable<>))
System\Data\Services\Client\ALinq\ResourceBinder.cs (4)
835
(ue.Type.
GetGenericTypeDefinition
() == typeof(DataServiceQuery<>) ||
836
ue.Type.
GetGenericTypeDefinition
() == typeof(DataServiceQuery<>.DataServiceOrderedQuery)))
1273
mce.Method.DeclaringType.
GetGenericTypeDefinition
() == typeof(DataServiceQuery<>))
2062
return nex.Type.IsGenericType && WebUtil.IsDataServiceCollectionType(nex.Type.
GetGenericTypeDefinition
());
System\Data\Services\Client\AtomMaterializer.cs (1)
414
if (type.IsGenericType && WebUtil.IsDataServiceCollectionType(type.
GetGenericTypeDefinition
()))
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)
55
type = type.
GetGenericTypeDefinition
();
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)
121
typeof(Nullable<>) == type.
GetGenericTypeDefinition
()))
System.Runtime.Serialization (26)
System\Runtime\Serialization\ClassDataContract.cs (1)
1420
stableName = DataContract.GetStableName(type.
GetGenericTypeDefinition
());
System\Runtime\Serialization\CollectionDataContract.cs (5)
837
type = type.
GetGenericTypeDefinition
();
902
return t.IsGenericType && (t.
GetGenericTypeDefinition
() == typeof(ArraySegment<>));
945
Type interfaceTypeToCheck = type.IsGenericType ? type.
GetGenericTypeDefinition
() : type;
1022
Type interfaceTypeToCheck = interfaceType.IsGenericType ? interfaceType.
GetGenericTypeDefinition
() : interfaceType;
1220
Type typeToCheck = type.IsGenericType ? type.
GetGenericTypeDefinition
() : type;
System\Runtime\Serialization\DataContract.cs (6)
1345
while (type.IsGenericType && type.
GetGenericTypeDefinition
() == Globals.TypeOfNullable)
1355
while (type.IsGenericType && type.
GetGenericTypeDefinition
() == Globals.TypeOfNullable)
1834
StringBuilder builder = new StringBuilder(type.
GetGenericTypeDefinition
().FullName).Append(Globals.OpenBracket);
2021
type.
GetGenericTypeDefinition
() == Globals.TypeOfNullable);
2196
rootType = rootType.
GetGenericTypeDefinition
();
2463
: this(DataContract.GetClrTypeFullName(type.
GetGenericTypeDefinition
()), type.GetGenericArguments())
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
519
if (itemType.IsGenericType && (itemType.
GetGenericTypeDefinition
() == Globals.TypeOfKeyValue))
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
321
&& collectionDataContract.ItemType.
GetGenericTypeDefinition
() == typeof(KeyValue<,>))
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)
443
&& interfaceType.
GetGenericTypeDefinition
() == Globals.TypeOfIEnumeratorGeneric
667
memberType.
GetGenericTypeDefinition
() == Globals.TypeOfNullable);
753
while (memberType.IsGenericType && memberType.
GetGenericTypeDefinition
() == Globals.TypeOfNullable)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (2)
186
(oldItemContract.UnderlyingType.
GetGenericTypeDefinition
() == Globals.TypeOfKeyValue))
396
&& collectionContract.ItemType.
GetGenericTypeDefinition
() == typeof(KeyValue<,>))
System\Runtime\Serialization\SchemaExporter.cs (1)
290
clrType = clrType.
GetGenericTypeDefinition
();
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
479
while (type.IsGenericType && type.
GetGenericTypeDefinition
() == Globals.TypeOfNullable)
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (3)
479
&& interfaceType.
GetGenericTypeDefinition
() == Globals.TypeOfIEnumeratorGeneric
644
memberType.
GetGenericTypeDefinition
() == Globals.TypeOfNullable);
731
while (memberType.IsGenericType && memberType.
GetGenericTypeDefinition
() == Globals.TypeOfNullable)
System.ServiceModel (8)
System\ServiceModel\Description\MessageContractExporter.cs (1)
960
type.
GetGenericTypeDefinition
() == typeof(Nullable<>));
System\ServiceModel\Description\ServiceReflector.cs (2)
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)
485
type.
GetGenericTypeDefinition
() == typeOfIQueryableGeneric)
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 (1)
System\Runtime\TypeHelper.cs (1)
307
return type.IsGenericType && type.
GetGenericTypeDefinition
() == NullableType;
System.ServiceModel.Web (2)
System\ServiceModel\Dispatcher\SingleBodyParameterDataContractMessageFormatter.cs (2)
80
while (type.IsGenericType && type.
GetGenericTypeDefinition
() == TypeOfNullable)
144
Type genericTypeDef = parameterType.
GetGenericTypeDefinition
();
System.Web (6)
ModelBinding\TypeHelpers.cs (2)
8
Func<Type, bool> matchesInterface = t => t.IsGenericType && t.
GetGenericTypeDefinition
() == interfaceType;
17
Type openType = closedType.
GetGenericTypeDefinition
();
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<>));
System.Web.DynamicData (2)
DynamicData\ModelProviders\DLinqColumnProvider.cs (1)
128
if (type.IsGenericType && type.
GetGenericTypeDefinition
() == typeof(EntitySet<>)) {
DynamicData\ModelProviders\DLinqDataModelProvider.cs (1)
44
prop.PropertyType.
GetGenericTypeDefinition
() == typeof(Table<>))
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 (10)
Script\Serialization\ObjectConverter.cs (2)
563
(typeof(IDictionary).IsAssignableFrom(type) || type.
GetGenericTypeDefinition
() == _idictionaryGenericType) &&
570
!(type.IsGenericType && type.
GetGenericTypeDefinition
() == typeof(Nullable<>));
Script\Services\ServicesUtilities.cs (2)
83
gtd = type.
GetGenericTypeDefinition
();
101
Type genericTypeDefinition = type.
GetGenericTypeDefinition
();
UI\WebControls\DataSourceHelper.cs (1)
168
(destinationType.
GetGenericTypeDefinition
() == typeof(Nullable<>))) {
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\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)
514
if (typeof(IList<>).IsAssignableFrom(type.
GetGenericTypeDefinition
())) {
522
if (typeof(IList<>).IsAssignableFrom(curInterface.
GetGenericTypeDefinition
())) {
System.Workflow.Activities (2)
Rules\Helpers.cs (1)
64
return ((type.IsValueType) && (type.IsGenericType) && (type.
GetGenericTypeDefinition
().Equals(typeof(Nullable<>))));
Rules\RuleValidation.cs (1)
3843
IsAuthorizedSimpleType(type.
GetGenericTypeDefinition
());
System.Workflow.ComponentModel (10)
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
1105
unboundedType = type.
GetGenericTypeDefinition
().UnderlyingSystemType;
AuthoringOM\Serializer\CollectionMarkupSerializer.cs (2)
98
(typeof(ICollection<>).IsAssignableFrom(collectionType.
GetGenericTypeDefinition
()) ||
99
typeof(IList<>).IsAssignableFrom(collectionType.
GetGenericTypeDefinition
()))));
AuthoringOM\Serializer\DictionarySurrogate.cs (2)
17
if (!obj.GetType().IsGenericType || obj.GetType().
GetGenericTypeDefinition
() != typeof(Dictionary<,>))
78
Type dictionaryType = typeof(Dictionary<int, int>).
GetGenericTypeDefinition
().MakeGenericType(keyType, valueType);
AuthoringOM\Serializer\GenericQueueSurrogate.cs (2)
18
if (!obj.GetType().IsGenericType || obj.GetType().
GetGenericTypeDefinition
() != typeof(Queue<>))
55
Type queueType = typeof(Queue<int>).
GetGenericTypeDefinition
().MakeGenericType(itemType);
AuthoringOM\Serializer\ListSurrogate.cs (2)
18
if (!obj.GetType().IsGenericType || obj.GetType().
GetGenericTypeDefinition
() != typeof(List<>))
56
Type listType = typeof(List<int>).
GetGenericTypeDefinition
().MakeGenericType(itemType);
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (1)
1236
if (propertyType.IsGenericType && propertyType.
GetGenericTypeDefinition
() == typeof(Nullable<>))
System.Xml (5)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
714
Type genType = type.
GetGenericTypeDefinition
();
System\Xml\Serialization\Types.cs (3)
861
return t.IsGenericType && (t.
GetGenericTypeDefinition
() == typeof(ArraySegment<>));
866
if (type.
GetGenericTypeDefinition
() == typeof(Nullable<>).
GetGenericTypeDefinition
())
System\Xml\Serialization\XmlReflectionImporter.cs (1)
849
Type genType = type.
GetGenericTypeDefinition
();
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<>)));