7 overrides of GetGenericTypeDefinition
mscorlib (4)
system\reflection\emit\generictypeparameterbuilder.cs (1)
195public override Type GetGenericTypeDefinition() { throw new InvalidOperationException(); }
system\reflection\emit\typebuilder.cs (1)
1613public override Type GetGenericTypeDefinition() { if (IsGenericTypeDefinition) return this; if (m_genTypeDef == null) throw new InvalidOperationException(); return m_genTypeDef; }
system\reflection\emit\typebuilderinstantiation.cs (1)
223public override Type GetGenericTypeDefinition() { return m_type; }
system\rttype.cs (1)
4276public override Type GetGenericTypeDefinition()
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1226public override Type GetGenericTypeDefinition()
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1226public override Type GetGenericTypeDefinition()
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
552public 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)
261currentType.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)
533return isGeneric && type.GetGenericTypeDefinition() == (Type)openType;
system\nullable.cs (1)
140Type genericType = nullableType.GetGenericTypeDefinition();
system\reflection\emit\dynamicilgenerator.cs (1)
1240Type t = m.DeclaringType.GetGenericTypeDefinition();
system\reflection\emit\signaturehelper.cs (1)
380AddOneArgTypeHelperWorker(clsArgument.GetGenericTypeDefinition(), true);
system\reflection\emit\typebuilder.cs (5)
115if (type.GetGenericTypeDefinition() != method.DeclaringType) 146if (type.GetGenericTypeDefinition() != constructor.DeclaringType) 167if (type.GetGenericTypeDefinition() != field.DeclaringType) 520if (!(destType.IsGenericType && destType.GetGenericTypeDefinition() == typeof(Nullable<>))) 1805Type genericTypeDefinition = m_typeParent.GetGenericTypeDefinition();
system\reflection\fieldinfo.cs (1)
49f.Name, declaringType.GetGenericTypeDefinition()));
system\reflection\methodbase.cs (1)
73m, declaringType.GetGenericTypeDefinition()));
system\runtime\interopservices\windowsruntime\clrireferenceimpl.cs (1)
431type.GetGenericTypeDefinition() == typeof(System.Collections.Generic.KeyValuePair<,>))
system\runtime\remoting\message.cs (2)
552if (!(paramType.IsGenericType && paramType.GetGenericTypeDefinition() == typeof(Nullable<>))) 567if (!(pt.IsGenericType && pt.GetGenericTypeDefinition() == typeof(Nullable<>)))
system\runtime\remoting\realproxy.cs (1)
546if (!(paramType.IsGenericType && paramType.GetGenericTypeDefinition() == typeof(Nullable<>)))
system\runtime\serialization\formatterservices.cs (1)
527StringBuilder builder = new StringBuilder(type.GetGenericTypeDefinition().FullName).Append("[");
PresentationBuildTasks (1)
Shared\System\Windows\Markup\ReflectionHelper.cs (1)
106return (type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(Nullable<>)));
PresentationFramework (5)
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (1)
1466type = type.GetGenericTypeDefinition();
src\Framework\System\Windows\Data\BindingExpression.cs (1)
1369if (targetType.IsGenericType && targetType.GetGenericTypeDefinition() == typeof(Nullable<>))
src\Framework\System\Windows\Data\BindingExpressionBase.cs (1)
1615if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>))
src\Framework\System\Windows\Markup\BamlRecordReader.cs (1)
3796return t.IsGenericType && t.GetGenericTypeDefinition() == NullableType;
src\Framework\System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
722Type genericTypeDefinition = interfaceType.GetGenericTypeDefinition();
System (1)
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (1)
1392if (callingType.IsGenericType && callingType.GetGenericTypeDefinition() == typeof(Nullable<>))
System.Activities (19)
System\Activities\ActivityUtilities.cs (9)
134Type genericType = propertyType.GetGenericTypeDefinition(); 193if (type.GetGenericTypeDefinition() == iDictionaryGenericType) 203interfaceType.GetGenericTypeDefinition() == iDictionaryGenericType) 234Type localInterface = type.GetGenericTypeDefinition(); 256Type localInterface = interfaceType.GetGenericTypeDefinition(); 309Type genericType = propertyType.GetGenericTypeDefinition(); 341if (propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == variableGenericType) 353if (propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == variableGenericType) 363if (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)
139Type declaringTypeGenericDefinition = declaringType.GetGenericTypeDefinition(); 205Type declaringTypeGenericDefinition = declaringType.GetGenericTypeDefinition(); 1827Type targetObjectGenericType = targetObjectType.GetGenericTypeDefinition();
System\Activities\Location.cs (1)
280Fx.Assert(typeof(T).GetGenericTypeDefinition() == typeof(Location<>), "We should only be calling this with location subclasses.");
System\Activities\Validation\ActivityValidationServices.cs (1)
525Type 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)
149return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(FlowSwitch<>); 508Fx.Assert(propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == typeof(IDictionary<,>), "Property type should be IDictonary<T, FlowNode>");
System\Activities\Core\Presentation\MorphHelpers.cs (1)
45Type expressionGenericType = expressionType.IsGenericType ? expressionType.GetGenericTypeDefinition() : null;
System.Activities.Presentation (61)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ActivityTemplateFactoryBuilderReader.cs (1)
276return 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)
28if (property.PropertyType.GetGenericTypeDefinition() == typeof(DelegateInArgument<>)) 33else if (property.PropertyType.GetGenericTypeDefinition() == typeof(DelegateOutArgument<>))
System.Activities.Presentation\System\Activities\Presentation\ActivityDesigner.cs (1)
278string iconKey = this.ModelItem.ItemType.IsGenericType ? this.ModelItem.ItemType.GetGenericTypeDefinition().Name : this.ModelItem.ItemType.Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\EditorUtilities.cs (1)
97if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Nullable<>))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (2)
125Type genericType = property.PropertyType.GetGenericTypeDefinition(); 151Type genericType = property.Parent.ItemType.GetGenericTypeDefinition();
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelUtilities.cs (2)
186interfaceType.GetGenericTypeDefinition() == typeof(IList<>)) 213interfaceType.GetGenericTypeDefinition() == typeof(ICollection<>))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (4)
182&& t == realCachedType.GetGenericTypeDefinition()) 553objectTypeDefinition = objectType.GetGenericTypeDefinition(); 1228return _provider.MergeType(_baseReflectionType.GetGenericTypeDefinition()); 1572foreach (object attr in AttributeDataCache.GetMetadataStoreAttributes(type.GetGenericTypeDefinition(), memberName, _tables))
System.Activities.Presentation\System\Activities\Presentation\Converters\VisualBasicValueSearchableStringConverter.cs (1)
22if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(VisualBasicValue<>))
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (1)
694if (type.IsGenericType && type.GetGenericTypeDefinition().Equals(disallowedType))
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (4)
259return allowedItemType.Equals(draggedType.GetGenericTypeDefinition()); 264return draggedType.Equals(allowedItemType.GetGenericTypeDefinition()); 269return allowedItemType.GetGenericTypeDefinition() == draggedType.GetGenericTypeDefinition();
System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (6)
42bool isLiteral = expressionType.IsGenericType ? Type.Equals(typeof(Literal<>), expressionType.GetGenericTypeDefinition()) : false; 75(expressionType.GetGenericTypeDefinition() == typeof(VariableValue<>) || 76expressionType.GetGenericTypeDefinition() == typeof(VariableReference<>))) 155return expressionType.IsGenericType && typeof(Location<>) == expressionType.GetGenericTypeDefinition(); 178expressionType = expressionType.GetGenericTypeDefinition(); 215expressionType = expressionType.GetGenericTypeDefinition();
System.Activities.Presentation\System\Activities\Presentation\FeatureManager.cs (1)
43InitializeFeature(modelType.GetGenericTypeDefinition());
System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
58argumentAccessorsGeneratorFound = argumentAccessorsGenerators.TryGetValue(activityType.GetGenericTypeDefinition(), out argumentAccessorsGenerator);
System.Activities.Presentation\System\Activities\Presentation\Model\AttachedPropertiesService.cs (1)
43where property.OwnerType.IsAssignableFrom(modelItemType.GetGenericTypeDefinition())
System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (1)
45Type newModelItemType = oldModelItemType.GetGenericTypeDefinition().MakeGenericType(value);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (5)
1124if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(IDictionary<,>)) 1133type.GetGenericArguments()[0].GetGenericTypeDefinition() == typeof(KeyValuePair<,>) && 1134type.GetGenericTypeDefinition() == typeof(IEnumerable<>)) 1144type.GetGenericArguments()[0].GetGenericTypeDefinition() == typeof(KeyValuePair<,>) && 1145type.GetGenericTypeDefinition() == typeof(ICollection<>))
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (2)
260return (typeof(ErrorActivity<>) == type.GetGenericTypeDefinition()); 438Type generictype = type.GetGenericTypeDefinition();
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (5)
131if (type.GetGenericTypeDefinition() == typeof(IDictionary<,>)) 181if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(IList<>)) 191if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(IDictionary<,>)) 882if (currentItem.ItemType.IsGenericType && currentItem.ItemType.GetGenericTypeDefinition() == typeof(Action<>)) 1249if (type.GetGenericTypeDefinition() == typeof(IDictionary<,>))
System.Activities.Presentation\System\Activities\Presentation\Model\ModelUtilities.cs (2)
24modelItem.Parent.Parent.Parent.ItemType.GetGenericTypeDefinition() == typeof(System.Activities.Statements.Switch<>)) 35return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(ModelItemKeyValuePair<,>);
System.Activities.Presentation\System\Activities\Presentation\Model\MorphHelper.cs (1)
52morphExtensions.TryGetValue(propertyType.GetGenericTypeDefinition(), out extension);
System.Activities.Presentation\System\Activities\Presentation\TypeUtilities.cs (3)
46if (candidate.IsGenericType && candidate.GetGenericTypeDefinition() != typeof(Nullable<>)) 91if (interfaceType.GetGenericTypeDefinition() == parentObjectType) 107if (current.GetGenericTypeDefinition() == parentObjectType)
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (2)
908parent.ItemType.GetGenericTypeDefinition() == typeof(ModelItemKeyValuePair<,>); 960return this.GetValidationErrorSourceLocator(typeOfActivityWithValidationError.GetGenericTypeDefinition());
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemModelItemViewModel.cs (1)
336modelItemType = this.VisualValue.ItemType.GetGenericTypeDefinition();
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
1289genericExpressionType = expressionType.GetGenericTypeDefinition();
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicReferenceValidationFeature.cs (1)
22modelType.IsGenericType && (modelType.GetGenericTypeDefinition() == VisualBasicReferenceType),
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicValueValidationFeature.cs (1)
22modelType.IsGenericType && (modelType.GetGenericTypeDefinition() == VisualBasicValueType),
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewManager.cs (1)
110Type genericTypeDefinition = type.GetGenericTypeDefinition();
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (2)
130attribute = ExtensibilityAccessor.GetAttribute<T>(type.GetGenericTypeDefinition()); 154Type genericType = type.GetGenericTypeDefinition();
System.Activities.Presentation\System\Activities\Presentation\VisualBasicExpressionMorphHelper.cs (2)
19Fx.Assert(expression.GetType().GetGenericTypeDefinition() == typeof(VisualBasicValue<>) || 20expression.GetType().GetGenericTypeDefinition() == typeof(VisualBasicReference<>), "VisualBasicExpressionMorphHelper should only apply to VB expression.");
System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (2)
214objectType.GetGenericTypeDefinition() == typeof(ErrorActivity<>)); 989type.GetGenericTypeDefinition() == typeof(Activity<>));
System.ComponentModel.DataAnnotations (2)
DataAnnotations\CustomValidationAttribute.cs (1)
280if (t.IsValueType && (!t.IsGenericType || t.GetGenericTypeDefinition() != typeof(Nullable<>))) {
DataAnnotations\Validator.cs (1)
303(destinationType.IsGenericType && destinationType.GetGenericTypeDefinition() == typeof(Nullable<>));
System.Core (8)
Microsoft\Scripting\Ast\TypeUtils.cs (4)
51return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>); 303Type genericDelegate = source.GetGenericTypeDefinition(); 305if (dest.GetGenericTypeDefinition() != genericDelegate) 620if (type.IsGenericType && AreEquivalent(type.GetGenericTypeDefinition(), definition)) {
System\Linq\SequenceQuery.cs (2)
281if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Lookup<,>.Grouping)) 287if (iType.IsGenericType && iType.GetGenericTypeDefinition() == typeof(IEnumerable<>))
System\Linq\TypeHelper.cs (2)
21if (type.IsGenericType && type.GetGenericTypeDefinition() == definition) 35return type != null && type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>);
System.Data (58)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (2)
28if (property.PropertyType.GetGenericTypeDefinition() == typeof(DelegateInArgument<>)) 33else if (property.PropertyType.GetGenericTypeDefinition() == typeof(DelegateOutArgument<>))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDesigner.cs (1)
278string iconKey = this.ModelItem.ItemType.IsGenericType ? this.ModelItem.ItemType.GetGenericTypeDefinition().Name : this.ModelItem.ItemType.Name;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\EditorUtilities.cs (1)
97if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Nullable<>))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (2)
125Type genericType = property.PropertyType.GetGenericTypeDefinition(); 151Type genericType = property.Parent.ItemType.GetGenericTypeDefinition();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelUtilities.cs (2)
186interfaceType.GetGenericTypeDefinition() == typeof(IList<>)) 213interfaceType.GetGenericTypeDefinition() == typeof(ICollection<>))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (4)
182&& t == realCachedType.GetGenericTypeDefinition()) 553objectTypeDefinition = objectType.GetGenericTypeDefinition(); 1228return _provider.MergeType(_baseReflectionType.GetGenericTypeDefinition()); 1572foreach (object attr in AttributeDataCache.GetMetadataStoreAttributes(type.GetGenericTypeDefinition(), memberName, _tables))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\VisualBasicValueSearchableStringConverter.cs (1)
22if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(VisualBasicValue<>))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (1)
694if (type.IsGenericType && type.GetGenericTypeDefinition().Equals(disallowedType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (4)
259return allowedItemType.Equals(draggedType.GetGenericTypeDefinition()); 264return draggedType.Equals(allowedItemType.GetGenericTypeDefinition()); 269return allowedItemType.GetGenericTypeDefinition() == draggedType.GetGenericTypeDefinition();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (6)
42bool isLiteral = expressionType.IsGenericType ? Type.Equals(typeof(Literal<>), expressionType.GetGenericTypeDefinition()) : false; 75(expressionType.GetGenericTypeDefinition() == typeof(VariableValue<>) || 76expressionType.GetGenericTypeDefinition() == typeof(VariableReference<>))) 155return expressionType.IsGenericType && typeof(Location<>) == expressionType.GetGenericTypeDefinition(); 178expressionType = expressionType.GetGenericTypeDefinition(); 215expressionType = expressionType.GetGenericTypeDefinition();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FeatureManager.cs (1)
43InitializeFeature(modelType.GetGenericTypeDefinition());
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
58argumentAccessorsGeneratorFound = argumentAccessorsGenerators.TryGetValue(activityType.GetGenericTypeDefinition(), out argumentAccessorsGenerator);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\AttachedPropertiesService.cs (1)
43where property.OwnerType.IsAssignableFrom(modelItemType.GetGenericTypeDefinition())
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (1)
45Type newModelItemType = oldModelItemType.GetGenericTypeDefinition().MakeGenericType(value);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (5)
1124if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(IDictionary<,>)) 1133type.GetGenericArguments()[0].GetGenericTypeDefinition() == typeof(KeyValuePair<,>) && 1134type.GetGenericTypeDefinition() == typeof(IEnumerable<>)) 1144type.GetGenericArguments()[0].GetGenericTypeDefinition() == typeof(KeyValuePair<,>) && 1145type.GetGenericTypeDefinition() == typeof(ICollection<>))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (2)
260return (typeof(ErrorActivity<>) == type.GetGenericTypeDefinition()); 438Type generictype = type.GetGenericTypeDefinition();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (5)
131if (type.GetGenericTypeDefinition() == typeof(IDictionary<,>)) 181if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(IList<>)) 191if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(IDictionary<,>)) 882if (currentItem.ItemType.IsGenericType && currentItem.ItemType.GetGenericTypeDefinition() == typeof(Action<>)) 1249if (type.GetGenericTypeDefinition() == typeof(IDictionary<,>))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelUtilities.cs (2)
24modelItem.Parent.Parent.Parent.ItemType.GetGenericTypeDefinition() == typeof(System.Activities.Statements.Switch<>)) 35return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(ModelItemKeyValuePair<,>);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\MorphHelper.cs (1)
52morphExtensions.TryGetValue(propertyType.GetGenericTypeDefinition(), out extension);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\TypeUtilities.cs (3)
46if (candidate.IsGenericType && candidate.GetGenericTypeDefinition() != typeof(Nullable<>)) 91if (interfaceType.GetGenericTypeDefinition() == parentObjectType) 107if (current.GetGenericTypeDefinition() == parentObjectType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (2)
908parent.ItemType.GetGenericTypeDefinition() == typeof(ModelItemKeyValuePair<,>); 960return this.GetValidationErrorSourceLocator(typeOfActivityWithValidationError.GetGenericTypeDefinition());
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemModelItemViewModel.cs (1)
336modelItemType = this.VisualValue.ItemType.GetGenericTypeDefinition();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
1289genericExpressionType = expressionType.GetGenericTypeDefinition();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicReferenceValidationFeature.cs (1)
22modelType.IsGenericType && (modelType.GetGenericTypeDefinition() == VisualBasicReferenceType),
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicValueValidationFeature.cs (1)
22modelType.IsGenericType && (modelType.GetGenericTypeDefinition() == VisualBasicValueType),
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewManager.cs (1)
110Type genericTypeDefinition = type.GetGenericTypeDefinition();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (2)
130attribute = ExtensibilityAccessor.GetAttribute<T>(type.GetGenericTypeDefinition()); 154Type genericType = type.GetGenericTypeDefinition();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (2)
214objectType.GetGenericTypeDefinition() == typeof(ErrorActivity<>)); 989type.GetGenericTypeDefinition() == typeof(Activity<>));
fx\src\data\System\Data\Common\DataStorage.cs (1)
468return ((StorageType.Empty == typeCode) && dataType.IsGenericType && (dataType.GetGenericTypeDefinition() == typeof(System.Nullable<>)));
System.Data.DataSetExtensions (1)
System\Data\DataRowExtensions.cs (1)
206if (type.IsGenericType && !type.IsGenericTypeDefinition && (typeof(Nullable<>) == type.GetGenericTypeDefinition()))
System.Data.Entity (32)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (1)
1847if (type.IsGenericType && typeof(Nullable<>).Equals(type.GetGenericTypeDefinition()))
System\Data\Common\EntityUtil.cs (3)
131return typeof(ICollection<>).IsAssignableFrom(type.GetGenericTypeDefinition()) || 151(collectionType.IsGenericType && typeof(ICollection<>).IsAssignableFrom(collectionType.GetGenericTypeDefinition())) ? 957if (destinationType.IsValueType && destinationType.IsGenericType && (typeof(Nullable<>) == destinationType.GetGenericTypeDefinition()))
System\Data\Common\Internal\Materialization\Translator.cs (1)
831if (valueType.IsGenericType && valueType.GetGenericTypeDefinition() == typeof(CompensatingCollection<>))
System\Data\Common\Utils\Boolean\IdentifierService.cs (1)
34identifierType.GetGenericTypeDefinition() == typeof(DomainConstraint<,>))
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (2)
233if (realType.IsGenericType && (typeof(Nullable<>) == realType.GetGenericTypeDefinition())) 325if (realType.IsGenericType && (typeof(Nullable<>) == realType.GetGenericTypeDefinition()))
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (3)
107Type genericType = clrType.GetGenericTypeDefinition(); 725type.GetGenericTypeDefinition() == typeof(System.Data.Objects.DataClasses.EntityReference<>) || 726type.GetGenericTypeDefinition() == typeof(System.Nullable<>)
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (2)
467type.GetGenericTypeDefinition() == typeof(System.Data.Objects.DataClasses.EntityReference<>) || 468type.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)
221typeof(IGrouping<,>).Equals(ClrType.GetGenericTypeDefinition())); 238typeof(IGrouping<,>).Equals(ClrType.GetGenericTypeDefinition()));
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (1)
283if (declaringType.IsGenericType && declaringType.GetGenericTypeDefinition() == typeof(List<>))
System\Data\Objects\ELinq\MethodCallTranslator.cs (5)
339typeof(ObjectQuery<>) == declaringType.GetGenericTypeDefinition()); 349if (argumentType.IsGenericType && (typeof(IQueryable<>) == argumentType.GetGenericTypeDefinition() || typeof(IOrderedQueryable<>) == argumentType.GetGenericTypeDefinition())) 351Debug.Assert(convertExpression.Type.IsGenericType && typeof(ObjectQuery<>) == convertExpression.Type.GetGenericTypeDefinition(), "MethodCall with internal MergeAs/IncludeSpan method was not constructed by LINQ to Entities?"); 740Type genericType = clrReturnType.GetGenericTypeDefinition();
System\Data\Objects\ELinq\Translator.cs (3)
228propertyInfo = propertyInfo.DeclaringType.GetGenericTypeDefinition().GetProperty(propertyInfo.Name, BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public); 366if (propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == typeof(EntityCollection<>)) 485candidateType.GetGenericTypeDefinition().Equals(typeof(System.Collections.Generic.ICollection<>)))
System\Data\Objects\ELinq\TypeSystem.cs (3)
33typeof(Nullable<>) == type.GetGenericTypeDefinition())) 217if (test.DeclaringType.IsInterface && test.DeclaringType.IsGenericType && test.DeclaringType.GetGenericTypeDefinition() == match) 225if (testInterface.IsGenericType && testInterface.GetGenericTypeDefinition() == match)
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
1107clrProperty.PropertyType.GetGenericTypeDefinition() == typeof(ICollection<>))
System.Data.Linq (37)
DataContext.cs (1)
420if (ft.IsGenericType && ft.GetGenericTypeDefinition() == typeof(Table<>)) {
DbConvert.cs (1)
180else if (toType.IsGenericType && toType.GetGenericTypeDefinition() == typeof(IQueryable<>)
Mapping\AttributedMetaModel.cs (7)
134if (ft.IsGenericType && ft.GetGenericTypeDefinition() == typeof(Table<>)) { 142if (pt.IsGenericType && pt.GetGenericTypeDefinition() == typeof(Table<>)) { 889(mi.ReturnType.GetGenericTypeDefinition() == typeof(IEnumerable<>) || 890mi.ReturnType.GetGenericTypeDefinition() == typeof(ISingleResult<>) || 891mi.ReturnType.GetGenericTypeDefinition() == typeof(IQueryable<>))) { 1254Type gtype = entityType.GetGenericTypeDefinition(); 1280Type gtype = accessor.Type.GetGenericTypeDefinition();
Mapping\MappedMetaModel.cs (4)
98if (ft.IsGenericType && ft.GetGenericTypeDefinition() == typeof(Table<>)) { 112if (pt.IsGenericType && pt.GetGenericTypeDefinition() == typeof(Table<>)) { 1159Type gtype = clrType.GetGenericTypeDefinition(); 1185Type gtype = accessor.Type.GetGenericTypeDefinition();
parent\DbmlShared\Mapping.cs (2)
482if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) { 531if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>))
SortableBindingList.cs (1)
113|| (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Nullable<>));
SqlClient\Common\SqlFactory.cs (1)
42if (clrType.IsGenericType && clrType.GetGenericTypeDefinition() == typeof(Nullable<>))
SqlClient\Common\TypeSystem.cs (2)
61return type != null && type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>); 191if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>))
SqlClient\Query\QueryConverter.cs (4)
1190(returnType.GetGenericTypeDefinition() == typeof(IEnumerable<>) || 1191returnType.GetGenericTypeDefinition() == typeof(ISingleResult<>))) { 1479t.GetGenericTypeDefinition() == typeof(IGrouping<,>)) 1860if (memberType.IsGenericType && memberType.GetGenericTypeDefinition() == typeof(Table<>)) {
SqlClient\Query\SqlFormatter.cs (1)
1240if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Nullable<>))
SqlClient\Query\SqlMethodCallConverter.cs (1)
953&& mc.Method.DeclaringType.GetGenericTypeDefinition() == typeof(Nullable<>)) {
SqlClient\Reader\ObjectReaderCompiler.cs (8)
1078Type genType = memberType.GetGenericTypeDefinition(); 1098else if (memberType.IsGenericType && memberType.GetGenericTypeDefinition() == typeof(EntitySet<>)) { 1158System.Diagnostics.Debug.Assert(memberType.IsGenericType && memberType.GetGenericTypeDefinition() == typeof(EntitySet<>)); 1220System.Diagnostics.Debug.Assert(memberType.IsGenericType && memberType.GetGenericTypeDefinition() == typeof(EntitySet<>)); 1280(memberType.GetGenericTypeDefinition() == typeof(EntityRef<>) || 1281memberType.GetGenericTypeDefinition() == typeof(Link<>)) 1571Type genActualType = actualType.IsGenericType ? actualType.GetGenericTypeDefinition() : null; 1572Type genExpectedType = expectedType.IsGenericType ? expectedType.GetGenericTypeDefinition() : null;
SqlClient\SqlBuilder.cs (1)
314return type.IsGenericType && typeof(Nullable<>).IsAssignableFrom(type.GetGenericTypeDefinition());
SqlClient\SqlTypeSystemProvider.cs (3)
1414if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) 1516if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) 1534if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>))
System.Data.Services (5)
parent\Client\System\Data\Services\Client\Common.cs (1)
55type = type.GetGenericTypeDefinition();
System\Data\Services\Providers\BaseServiceProvider.cs (2)
686return m.IsGenericType && m.GetGenericTypeDefinition() == typeof(IQueryable<>); 696return m.IsGenericType && m.GetGenericTypeDefinition() == typeof(IEnumerable<>);
System\Data\Services\WebUtil.cs (2)
877return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>); 1346return inputType.IsGenericType && WebUtil.GenericExpandedWrapperTypes.SingleOrDefault(x => x.Type == inputType.GetGenericTypeDefinition()) != null;
System.Data.Services.Client (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<>) || 836ue.Type.GetGenericTypeDefinition() == typeof(DataServiceQuery<>.DataServiceOrderedQuery))) 1273mce.Method.DeclaringType.GetGenericTypeDefinition() == typeof(DataServiceQuery<>)) 2062return nex.Type.IsGenericType && WebUtil.IsDataServiceCollectionType(nex.Type.GetGenericTypeDefinition());
System\Data\Services\Client\AtomMaterializer.cs (1)
414if (type.IsGenericType && WebUtil.IsDataServiceCollectionType(type.GetGenericTypeDefinition()))
System\Data\Services\Client\Binding\BindingUtils.cs (1)
45if (collectionType.IsGenericType && WebUtil.IsDataServiceCollectionType(collectionType.GetGenericTypeDefinition()))
System\Data\Services\Client\ClientType.cs (2)
370return !type.IsValueType || (type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(Nullable<>))); 684return type.IsGenericType && (type.GetGenericTypeDefinition() == genericTypeDefinition) && !type.ContainsGenericParameters;
System\Data\Services\Client\Common.cs (1)
55type = type.GetGenericTypeDefinition();
System\Data\Services\Client\Util.cs (1)
626return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>);
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
121typeof(Nullable<>) == type.GetGenericTypeDefinition()))
System.Runtime.Serialization (26)
System\Runtime\Serialization\ClassDataContract.cs (1)
1420stableName = DataContract.GetStableName(type.GetGenericTypeDefinition());
System\Runtime\Serialization\CollectionDataContract.cs (5)
837type = type.GetGenericTypeDefinition(); 902return t.IsGenericType && (t.GetGenericTypeDefinition() == typeof(ArraySegment<>)); 945Type interfaceTypeToCheck = type.IsGenericType ? type.GetGenericTypeDefinition() : type; 1022Type interfaceTypeToCheck = interfaceType.IsGenericType ? interfaceType.GetGenericTypeDefinition() : interfaceType; 1220Type typeToCheck = type.IsGenericType ? type.GetGenericTypeDefinition() : type;
System\Runtime\Serialization\DataContract.cs (6)
1345while (type.IsGenericType && type.GetGenericTypeDefinition() == Globals.TypeOfNullable) 1355while (type.IsGenericType && type.GetGenericTypeDefinition() == Globals.TypeOfNullable) 1834StringBuilder builder = new StringBuilder(type.GetGenericTypeDefinition().FullName).Append(Globals.OpenBracket); 2021type.GetGenericTypeDefinition() == Globals.TypeOfNullable); 2196rootType = rootType.GetGenericTypeDefinition(); 2463: this(DataContract.GetClrTypeFullName(type.GetGenericTypeDefinition()), type.GetGenericArguments())
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
519if (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)
523while (type.IsGenericType && type.GetGenericTypeDefinition() == Globals.TypeOfNullable) 773while (keyType.IsGenericType && keyType.GetGenericTypeDefinition() == Globals.TypeOfNullable)
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (3)
443&& interfaceType.GetGenericTypeDefinition() == Globals.TypeOfIEnumeratorGeneric 667memberType.GetGenericTypeDefinition() == Globals.TypeOfNullable); 753while (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)
290clrType = clrType.GetGenericTypeDefinition();
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
479while (type.IsGenericType && type.GetGenericTypeDefinition() == Globals.TypeOfNullable)
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (3)
479&& interfaceType.GetGenericTypeDefinition() == Globals.TypeOfIEnumeratorGeneric 644memberType.GetGenericTypeDefinition() == Globals.TypeOfNullable); 731while (memberType.IsGenericType && memberType.GetGenericTypeDefinition() == Globals.TypeOfNullable)
System.ServiceModel (8)
System\ServiceModel\Description\MessageContractExporter.cs (1)
960type.GetGenericTypeDefinition() == typeof(Nullable<>));
System\ServiceModel\Description\ServiceReflector.cs (2)
906if (method.ReturnType.IsGenericType && method.ReturnType.GetGenericTypeDefinition() == taskTResultType) 923if (methodReturnType.IsGenericType && methodReturnType.GetGenericTypeDefinition() == taskTResultType)
System\ServiceModel\Description\TaskOperationDescriptionValidator.cs (1)
58(parameterType.IsGenericType && parameterType.GetGenericTypeDefinition() == ServiceReflector.IProgressType))
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
485type.GetGenericTypeDefinition() == typeOfIQueryableGeneric)
System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
50if (faultType.IsGenericType && (faultType.GetGenericTypeDefinition() == typeof(FaultException<>)))
System\ServiceModel\MessageHeaderT.cs (1)
101if (headerParameterType.IsGenericType && headerParameterType.GetGenericTypeDefinition() == typeof(MessageHeader<>))
System\ServiceModel\MsmqIntegration\MsmqIntegrationValidationBehavior.cs (1)
106if (type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(MsmqMessage<>)))
System.ServiceModel.Activities (3)
System\ServiceModel\Activities\ContractInferenceHelper.cs (1)
571if (type.IsGenericType && type.GetGenericTypeDefinition() == FaultExceptionType)
System\ServiceModel\Activities\SendMessageContent.cs (1)
248if (argumentType.IsGenericType && argumentType.GetGenericTypeDefinition() == ContractInferenceHelper.FaultExceptionType)
System\ServiceModel\Activities\SendParametersContent.cs (1)
215if (argumentType.IsGenericType && argumentType.GetGenericTypeDefinition() == ContractInferenceHelper.FaultExceptionType)
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\DiscoveryClient.cs (1)
1333if (userStateType.IsGenericType && userStateType.GetGenericTypeDefinition() == TaskAsyncOperationStateType)
System.ServiceModel.Internals (1)
System\Runtime\TypeHelper.cs (1)
307return type.IsGenericType && type.GetGenericTypeDefinition() == NullableType;
System.ServiceModel.Web (2)
System\ServiceModel\Dispatcher\SingleBodyParameterDataContractMessageFormatter.cs (2)
80while (type.IsGenericType && type.GetGenericTypeDefinition() == TypeOfNullable) 144Type genericTypeDef = parameterType.GetGenericTypeDefinition();
System.Web (6)
ModelBinding\TypeHelpers.cs (2)
8Func<Type, bool> matchesInterface = t => t.IsGenericType && t.GetGenericTypeDefinition() == interfaceType; 17Type openType = closedType.GetGenericTypeDefinition();
UI\TargetFrameworkUtil.cs (1)
511return type.IsGenericType ? type.GetGenericTypeDefinition() : type;
UI\WebControls\ModelDataSourceView.cs (1)
433if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Task<>)) {
UI\WebControls\ObjectDataSourceView.cs (1)
717if (destinationType.IsGenericType && (destinationType.GetGenericTypeDefinition() == typeof(Nullable<>))) {
UI\WebControls\Parameter.cs (1)
329return type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(Nullable<>));
System.Web.DynamicData (2)
DynamicData\ModelProviders\DLinqColumnProvider.cs (1)
128if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(EntitySet<>)) {
DynamicData\ModelProviders\DLinqDataModelProvider.cs (1)
44prop.PropertyType.GetGenericTypeDefinition() == typeof(Table<>))
System.Web.Entity (4)
System\Data\WebControls\EntityDataSourceUtil.cs (2)
490if (type.IsGenericType && type.GetGenericTypeDefinition().Equals(typeof(Nullable<>))) 553if (type.IsGenericType && typeof(Nullable<>).IsAssignableFrom(type.GetGenericTypeDefinition()) && !type.ContainsGenericParameters)
System\Data\WebControls\EntityDataSourceView.cs (1)
1737if (valueType.IsGenericType && (valueType.GetGenericTypeDefinition() == typeof(Nullable<>)))
System\Data\WebControls\EntityDataSourceViewSchema.cs (1)
103if (propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == typeof(Nullable<>))
System.Web.Extensions (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)
83gtd = type.GetGenericTypeDefinition(); 101Type genericTypeDefinition = type.GetGenericTypeDefinition();
UI\WebControls\DataSourceHelper.cs (1)
168(destinationType.GetGenericTypeDefinition() == typeof(Nullable<>))) {
UI\WebControls\Dynamic.cs (2)
1216if (type.IsGenericType && type.GetGenericTypeDefinition() == generic) return type; 1310return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>);
UI\WebControls\Expressions\ExpressionHelper.cs (1)
18if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) {
UI\WebControls\LinqDataSourceHelper.cs (1)
31if (type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(IEnumerable<>))) {
UI\WebControls\QueryableDataSourceHelper.cs (1)
94if (type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(IEnumerable<>))) {
System.Windows.Forms (3)
winforms\Managed\System\WinForms\Formatter.cs (1)
457if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) {
winforms\Managed\System\WinForms\ListBindingHelper.cs (2)
514if (typeof(IList<>).IsAssignableFrom(type.GetGenericTypeDefinition())) { 522if (typeof(IList<>).IsAssignableFrom(curInterface.GetGenericTypeDefinition())) {
System.Workflow.Activities (2)
Rules\Helpers.cs (1)
64return ((type.IsValueType) && (type.IsGenericType) && (type.GetGenericTypeDefinition().Equals(typeof(Nullable<>))));
Rules\RuleValidation.cs (1)
3843IsAuthorizedSimpleType(type.GetGenericTypeDefinition());
System.Workflow.ComponentModel (10)
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
1105unboundedType = type.GetGenericTypeDefinition().UnderlyingSystemType;
AuthoringOM\Serializer\CollectionMarkupSerializer.cs (2)
98(typeof(ICollection<>).IsAssignableFrom(collectionType.GetGenericTypeDefinition()) || 99typeof(IList<>).IsAssignableFrom(collectionType.GetGenericTypeDefinition()))));
AuthoringOM\Serializer\DictionarySurrogate.cs (2)
17if (!obj.GetType().IsGenericType || obj.GetType().GetGenericTypeDefinition() != typeof(Dictionary<,>)) 78Type dictionaryType = typeof(Dictionary<int, int>).GetGenericTypeDefinition().MakeGenericType(keyType, valueType);
AuthoringOM\Serializer\GenericQueueSurrogate.cs (2)
18if (!obj.GetType().IsGenericType || obj.GetType().GetGenericTypeDefinition() != typeof(Queue<>)) 55Type queueType = typeof(Queue<int>).GetGenericTypeDefinition().MakeGenericType(itemType);
AuthoringOM\Serializer\ListSurrogate.cs (2)
18if (!obj.GetType().IsGenericType || obj.GetType().GetGenericTypeDefinition() != typeof(List<>)) 56Type listType = typeof(List<int>).GetGenericTypeDefinition().MakeGenericType(itemType);
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (1)
1236if (propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == typeof(Nullable<>))
System.Xml (5)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
714Type genType = type.GetGenericTypeDefinition();
System\Xml\Serialization\Types.cs (3)
861return t.IsGenericType && (t.GetGenericTypeDefinition() == typeof(ArraySegment<>)); 866if (type.GetGenericTypeDefinition() == typeof(Nullable<>).GetGenericTypeDefinition())
System\Xml\Serialization\XmlReflectionImporter.cs (1)
849Type genType = type.GetGenericTypeDefinition();
WindowsBase (2)
Base\System\Windows\DependencyProperty.cs (1)
1056!(propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == NullableType))
Shared\System\Windows\Markup\ReflectionHelper.cs (1)
106return (type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(Nullable<>)));