Implemented interface member:
method
IsAssignableFrom
System.Runtime.InteropServices._Type.IsAssignableFrom(System.Type)
9 overrides of IsAssignableFrom
mscorlib (4)
system\reflection\emit\generictypeparameterbuilder.cs (1)
201public override bool IsAssignableFrom(Type c) { throw new NotSupportedException(); }
system\reflection\emit\typebuilder.cs (1)
1301public override bool IsAssignableFrom(Type c)
system\reflection\emit\typebuilderinstantiation.cs (1)
225public override bool IsAssignableFrom(Type c) { throw new NotSupportedException(); }
system\rttype.cs (1)
3710public override bool IsAssignableFrom(Type c)
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1095public override bool IsAssignableFrom(Type c) { return _baseReflectionType.IsAssignableFrom(c); }
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1095public override bool IsAssignableFrom(Type c) { return _baseReflectionType.IsAssignableFrom(c); }
System.Workflow.ComponentModel (2)
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (1)
620public override bool IsAssignableFrom(Type c)
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
407public override bool IsAssignableFrom(Type c)
System.WorkflowServices (1)
System\Workflow\Activities\ContractType.cs (1)
401public override bool IsAssignableFrom(Type type)
1990 references to IsAssignableFrom
mscorlib (79)
system\collections\generic\arraysorthelper.cs (2)
115if (typeof(IComparable<T>).IsAssignableFrom(typeof(T))) 893if (typeof(IComparable<TKey>).IsAssignableFrom(typeof(TKey)))
system\collections\generic\comparer.cs (2)
59if (typeof(IComparable<T>).IsAssignableFrom(t)) { 66if (typeof(IComparable<>).MakeGenericType(u).IsAssignableFrom(u)) {
system\collections\generic\equalitycomparer.cs (2)
49if (typeof(IEquatable<T>).IsAssignableFrom(t)) { 55if (typeof(IEquatable<>).MakeGenericType(u).IsAssignableFrom(u)) {
system\collections\objectmodel\collection.cs (2)
208if(!(targetType.IsAssignableFrom(sourceType) || sourceType.IsAssignableFrom(targetType))) {
system\collections\objectmodel\readonlycollection.cs (2)
153if(!(targetType.IsAssignableFrom(sourceType) || sourceType.IsAssignableFrom(targetType))) {
system\collections\objectmodel\readonlydictionary.cs (2)
600if (!(targetType.IsAssignableFrom(sourceType) || sourceType.IsAssignableFrom(targetType))) {
system\defaultbinder.cs (9)
189if (!par[lastArgPos].ParameterType.IsAssignableFrom(argTypes[lastArgPos])) 238if (!pCls.IsAssignableFrom(argTypes[paramOrder[i][j]])) 266if (!paramArrayType.IsAssignableFrom(argTypes[j])) 484if (pCls.IsAssignableFrom(valueType)) { 557if (!pCls.IsAssignableFrom(types[j])) 643if (!pCls.IsAssignableFrom(indexes[j])) 657if (!candidates[i].PropertyType.IsAssignableFrom(returnType)) 934c1FromC2 = c1.IsAssignableFrom(c2); 935c2FromC1 = c2.IsAssignableFrom(c1);
system\marshalbyrefobject.cs (1)
229return castType.IsAssignableFrom(this.GetType());
system\reflection\ConstructorInfo.cs (1)
250if (typeof(Delegate).IsAssignableFrom(DeclaringType))
system\reflection\emit\dynamicmethod.cs (2)
939if (attributeType.IsAssignableFrom(typeof(MethodImplAttribute))) 955if (attributeType.IsAssignableFrom(typeof(MethodImplAttribute)))
system\reflection\emit\enumbuilder.cs (1)
36return IsAssignableFrom(typeInfo.AsType());
system\reflection\emit\symboltype.cs (1)
30return IsAssignableFrom(typeInfo.AsType());
system\reflection\emit\typebuilder.cs (1)
472if (!destType.IsAssignableFrom(type))
system\reflection\eventinfo.cs (1)
193return mc.IsAssignableFrom(cl);
system\reflection\typedelegator.cs (1)
24return IsAssignableFrom(typeInfo.AsType());
system\reflection\typeinfo.cs (1)
74if (!constraints[i].IsAssignableFrom(typeInfo))
system\rttype.cs (1)
3742if (!constraints[i].IsAssignableFrom(c))
system\runtime\interopservices\windowsruntime\clrireferenceimpl.cs (1)
445else if (typeof(Delegate).IsAssignableFrom(type))
system\runtime\interopservices\windowsruntime\eventregistrationtokentable.cs (1)
33if (!typeof(Delegate).IsAssignableFrom(typeof(T)))
system\runtime\remoting\activationservices.cs (1)
969if (!(typeof(ContextBoundObject).IsAssignableFrom(serverType)) ||
system\runtime\remoting\channelservices.cs (1)
694if (!typeof(IMessageSink).IsAssignableFrom(srvId.ServerType))
system\runtime\remoting\configuration.cs (6)
458bool isServerChannel = typeof(IChannelReceiver).IsAssignableFrom(type); 459bool isClientChannel = typeof(IChannelSender).IsAssignableFrom(type); 598if (!typeof(IServerChannelSinkProvider).IsAssignableFrom(type)) 610if (!typeof(IClientChannelSinkProvider).IsAssignableFrom(type)) 623if ((bServer && !typeof(IServerFormatterSinkProvider).IsAssignableFrom(type)) || 624(!bServer && !typeof(IClientFormatterSinkProvider).IsAssignableFrom(type)))
system\runtime\remoting\message.cs (1)
683else if (SoapType.typeofISoapXsd.IsAssignableFrom(pt))
system\runtime\remoting\objref.cs (1)
989(!typeof(IMessageSink).IsAssignableFrom(serverType)))
system\runtime\remoting\remotingproxy.cs (1)
710fCastOK = GetProxiedType().IsAssignableFrom(castType);
system\runtime\remoting\remotingservices.cs (1)
1457if (!classToProxy.IsAssignableFrom(serverType))
system\runtime\remoting\remotingsurrogateselector.cs (3)
100else if (s_IMethodCallMessageType.IsAssignableFrom(type) || 101s_IMethodReturnMessageType.IsAssignableFrom(type)) 106else if (s_ObjRefType.IsAssignableFrom(type))
system\runtime\serialization\formatters\binary\binaryobjectinfo.cs (2)
226else if (Converter.typeofISerializable.IsAssignableFrom(objectType)) 596else if (Converter.typeofISerializable.IsAssignableFrom(objectType))
system\runtime\serialization\formatters\binary\binaryobjectreader.cs (1)
460if (typeof(MarshalByRefObject).IsAssignableFrom(t))
system\runtime\serialization\formatterservices.cs (1)
217if (advancedTypes[i].IsAssignableFrom(t))
system\runtime\serialization\safeserializationmanager.cs (2)
327Contract.Requires(typeof(ISerializable).IsAssignableFrom(serializedObject.GetType())); 328Contract.Requires(serializedObject.GetType().IsAssignableFrom(info.ObjectType));
system\runtime\serialization\serializationinfo.cs (2)
542if (Object.ReferenceEquals(foundType, type) || type.IsAssignableFrom(foundType) || value == null) 575if (Object.ReferenceEquals(foundType, type) || type.IsAssignableFrom(foundType) || value == null)
system\security\accesscontrol\directoryobjectsecurity.cs (2)
484if ( !this.AccessRuleType.IsAssignableFrom(rule.GetType()) ) 496if ( !this.AuditRuleType.IsAssignableFrom(rule.GetType()) )
system\security\accesscontrol\objectsecurity.cs (2)
696if ( !this.AccessRuleType.IsAssignableFrom(rule.GetType()) ) 723if ( !this.AuditRuleType.IsAssignableFrom(rule.GetType()) )
system\security\cryptography\cryptoconfig.cs (1)
666if (rci == null || typeof(Delegate).IsAssignableFrom(rci.DeclaringType))
system\security\policy\evidence.cs (2)
219BCLDebug.Assert(typeof(EvidenceBase).IsAssignableFrom(runtimeEvidenceType), "All runtime evidence types should be EvidenceBases"); 1328if (!type.IsAssignableFrom(hostEvidence.GetType()))
system\security\policy\hash.cs (8)
309Contract.Assert(hashType != null && typeof(HashAlgorithm).IsAssignableFrom(hashType), "Expected a hash algorithm"); 333Contract.Assert(hashType != null && typeof(HashAlgorithm).IsAssignableFrom(hashType), "Expected a hash algorithm"); 394Contract.Assert(hashAlgorithm != null && typeof(HashAlgorithm).IsAssignableFrom(hashAlgorithm)); 395Contract.Assert(fallbackImplementation != null && GetHashIndexType(hashAlgorithm).IsAssignableFrom(fallbackImplementation)); 408Contract.Assert(hashAlgorithm != null && typeof(HashAlgorithm).IsAssignableFrom(hashAlgorithm)); 410if (hashAlgorithm.IsAssignableFrom(typeof(MD5))) 424else if (hashAlgorithm.IsAssignableFrom(typeof(SHA256))) 445Contract.Assert(hashType != null && typeof(HashAlgorithm).IsAssignableFrom(hashType));
system\security\util\xmlutil.cs (3)
419if (!(typeof(IPermission).IsAssignableFrom(permClass))) 491if (!(typeof(CodeGroup).IsAssignableFrom(groupClass))) 625if (!(typeof(IMembershipCondition).IsAssignableFrom(condClass)))
system\type.cs (4)
1325return typeof(ContextBoundObject).IsAssignableFrom(this); 1331return typeof(MarshalByRefObject).IsAssignableFrom(this); 1669return IsAssignableFrom(o.GetType()); 1702if (!constraints[i].IsAssignableFrom(c))
PresentationBuildTasks (98)
Base\System\Windows\Markup\TypeConverterHelper.cs (19)
177else if (typeof(Int32).IsAssignableFrom(type)) 181else if (typeof(Int16).IsAssignableFrom(type)) 185else if (typeof(Int64).IsAssignableFrom(type)) 189else if (typeof(UInt32).IsAssignableFrom(type)) 193else if (typeof(UInt16).IsAssignableFrom(type)) 197else if (typeof(UInt64).IsAssignableFrom(type)) 201else if (typeof(Boolean).IsAssignableFrom(type)) 205else if (typeof(Double).IsAssignableFrom(type)) 209else if (typeof(Single).IsAssignableFrom(type)) 213else if (typeof(Byte).IsAssignableFrom(type)) 217else if (typeof(SByte).IsAssignableFrom(type)) 221else if (typeof(Char).IsAssignableFrom(type)) 225else if (typeof(Decimal).IsAssignableFrom(type)) 229else if (typeof(TimeSpan).IsAssignableFrom(type)) 233else if (typeof(Guid).IsAssignableFrom(type)) 237else if (typeof(String).IsAssignableFrom(type)) 241else if (typeof(CultureInfo).IsAssignableFrom(type)) 245else if (typeof(Type).IsAssignableFrom(type)) 249else if (typeof(DateTime).IsAssignableFrom(type))
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (10)
1160if (_codeContexts.Count > 1 && KnownTypes.Types[(int)KnownElements.INameScope].IsAssignableFrom(cc.ElementType)) 1719if (_codeContexts.Count > 1 && KnownTypes.Types[(int)KnownElements.INameScope].IsAssignableFrom(cc.ElementType)) 1851Debug.Assert(pis != null && pis.Length == 2 && KnownTypes.Types[(int)KnownElements.DependencyObject].IsAssignableFrom(pis[0].ParameterType)); 1928if (mei.mi.DeclaringType.IsAssignableFrom(eventTarget)) 1934KnownTypes.Types[(int)KnownElements.UIElement].IsAssignableFrom(eventTarget) || 1935KnownTypes.Types[(int)KnownElements.ContentElement].IsAssignableFrom(eventTarget)) 2135if (iNameScope.IsAssignableFrom(t)) 2139if (resourceDictionary.IsAssignableFrom(t)) 2917if (elementType != null && KnownTypes.Types[(int)KnownElements.IComponentConnector].IsAssignableFrom(elementType)) 3059(memberInfo.DeclaringType.IsAssignableFrom(_ccRoot.ElementType) && (memberInfo is PropertyInfo)));
BuildTasks\Ms\Internal\MarkupCompiler\ParserExtension.cs (2)
171KnownTypes.Types[(int)KnownElements.Application].IsAssignableFrom(memberInfo.DeclaringType)) 578bool appEvent = KnownTypes.Types[(int)KnownElements.Application].IsAssignableFrom(xamlClrEventNode.EventMember.DeclaringType);
Framework\System\Windows\Markup\BamlRecords.cs (6)
484return (KnownTypes.Types[(int)KnownElements.IAddChildInternal].IsAssignableFrom( parentObjectType )); 494else if (typeof(IDictionary).IsAssignableFrom(propertyType)) 498else if ((typeof(IList).IsAssignableFrom(propertyType) || 500(typeof(IEnumerable).IsAssignableFrom(propertyType) && !propertyCanWrite))) 4953|| (KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(propertyMember.GetType())), 4996KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(PropertyMember.GetType( )) )
Framework\System\Windows\Markup\BamlRecordWriter.cs (8)
358if (typeof(String).IsAssignableFrom(xamlElementNode.ElementType) || 359KnownTypes.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlElementNode.ElementType) || 360KnownTypes.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlElementNode.ElementType)) 379else if (_deferLoadingSupport && KnownTypes.Types[(int)KnownElements.ResourceDictionary].IsAssignableFrom(xamlElementNode.ElementType)) 802if (!typeof(String).IsAssignableFrom(xamlKeyElementNode.ElementType) && 803!KnownTypes.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) && 804!KnownTypes.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) && 805!KnownTypes.Types[(int)KnownElements.ResourceKey].IsAssignableFrom(xamlKeyElementNode.ElementType))
Framework\System\Windows\Markup\MarkupExtensionParser.cs (1)
613else if (!KnownTypes.Types[(int)KnownElements.MarkupExtension].IsAssignableFrom(targetType))
Framework\System\Windows\Markup\ParserContext.cs (2)
901if (attributeType.IsAssignableFrom(constructorArgumentType)) 905else if (attributeType.IsAssignableFrom(markupExtensionBracketCharacterType))
Framework\System\Windows\Markup\StyleXamlParser.cs (2)
647if (KnownTypes.Types[(int)KnownElements.SetterBase].IsAssignableFrom(xamlElementStartNode.ElementType)) 678(KnownTypes.Types[(int)KnownElements.SetterBase].IsAssignableFrom(xamlElementStartNode.ElementType)))
Framework\System\Windows\Markup\TemplateXamlParser.cs (7)
664if (KnownTypes.Types[(int)KnownElements.ControlTemplate].IsAssignableFrom(xamlElementStartNode.ElementType)) 668else if (KnownTypes.Types[(int)KnownElements.DataTemplate].IsAssignableFrom(xamlElementStartNode.ElementType)) 684else if (KnownTypes.Types[(int)KnownElements.ItemsPanelTemplate].IsAssignableFrom(xamlElementStartNode.ElementType)) 715(KnownTypes.Types[(int)KnownElements.SetterBase].IsAssignableFrom(xamlElementStartNode.ElementType))) 854!KnownTypes.Types[(int)KnownElements.FrameworkElement].IsAssignableFrom(elementType) 856!KnownTypes.Types[(int)KnownElements.FrameworkContentElement].IsAssignableFrom(elementType)) 1547if (!KnownTypes.Types[(int)KnownElements.DataTrigger].IsAssignableFrom(t))
Framework\System\Windows\Markup\XamlReaderHelper.cs (34)
250return (typeof(IList).IsAssignableFrom(type) 251|| typeof(IDictionary).IsAssignableFrom(type) 252|| typeof(Array).IsAssignableFrom(type)); 640typeof(IDictionary).IsAssignableFrom(ParentContext.ContextData as Type)); 1397!typeof(System.Xml.XmlException).IsAssignableFrom(innerException.GetType())) 1917if (KnownTypes.Types[(int)KnownElements.Application].IsAssignableFrom(type) || 1918KnownTypes.Types[(int)KnownElements.ResourceDictionary].IsAssignableFrom(type)) 2303dependencyObjectType.IsAssignableFrom(CurrentContext.ContextDataType)) 2974KnownTypes.Types[(int)KnownElements.IComponentConnector].IsAssignableFrom(parentType)) 3134&& !typeof(IDictionary).IsAssignableFrom(pType)) 3362if (KnownTypes.Types[(int)KnownElements.FrameworkElement].IsAssignableFrom(objectType) || 3363KnownTypes.Types[(int)KnownElements.FrameworkContentElement].IsAssignableFrom(objectType) || 3364KnownTypes.Types[(int)KnownElements.Timeline].IsAssignableFrom(objectType) || 3365KnownTypes.Types[(int)KnownElements.BeginStoryboard].IsAssignableFrom(objectType)) 3390if (KnownTypes.Types[(int)KnownElements.Timeline].IsAssignableFrom(objectType)) 3436if (FEType.IsAssignableFrom(baseType) || 3437FCEType.IsAssignableFrom(baseType) || 3438BSBType.IsAssignableFrom(baseType)) 3445if (TimelineType.IsAssignableFrom(baseType)) 3690if (KnownTypes.Types[(int)KnownElements.RoutedEvent].IsAssignableFrom(elementBaseType)) 4204typeof(IEnumerable).IsAssignableFrom(propertyType) && 4205!typeof(IList).IsAssignableFrom(propertyType) && 4381if (((ParentContext.ContextDataType).IsAssignableFrom(currentObjectType) || 4382KnownTypes.Types[(int)KnownElements.MarkupExtension].IsAssignableFrom(currentObjectType)) 4499if (typeof(IList).IsAssignableFrom(parentElementType) 4500&& typeof(IDictionary).IsAssignableFrom(parentElementType)) 4589if (typeof(IList).IsAssignableFrom(pi.PropertyType)) 4642!typeof(IEnumerable).IsAssignableFrom(parentType) && 4643!typeof(IList).IsAssignableFrom(parentType) && 4644!typeof(IDictionary).IsAssignableFrom(parentType)) 4657&& !arrayType.IsAssignableFrom(objectType)) 4709else if( typeof(IList).IsAssignableFrom(contentPropertyType) ) 4928if( propertyInfo.PropertyType.IsAssignableFrom(typeof(string)) ) 6741return _typeIXmlSerializable.IsAssignableFrom(type);
Framework\System\Windows\Markup\XamlTypeMapper.cs (7)
1381if (pis == null || pis.Length != 2 || !dependencyObjectType.IsAssignableFrom(pis[0].ParameterType)) 1489!objectType.IsAssignableFrom(owner)) 1544if (pis == null || pis.Length != 2 || !dependencyObjectType.IsAssignableFrom(pis[0].ParameterType)) 1911if (KnownTypes.Types[(int)KnownElements.FrameworkElement].IsAssignableFrom(typeAndSerializer.ObjectType) || 1912KnownTypes.Types[(int)KnownElements.FrameworkContentElement].IsAssignableFrom(typeAndSerializer.ObjectType)) 2809else if (KnownTypes.Types[(int)KnownElements.FrameworkTemplate].IsAssignableFrom(objectType)) 3992if (KnownTypes.Types[(int)KnownElements.LineBreak].IsAssignableFrom(type))
PresentationCore (11)
Core\CSharp\System\Windows\EventManager.cs (3)
178if (!typeof(UIElement).IsAssignableFrom(classType) && 179!typeof(ContentElement).IsAssignableFrom(classType) && 180!typeof(UIElement3D).IsAssignableFrom(classType))
Core\CSharp\System\Windows\GlobalEventManager.cs (3)
57typeof(UIElement).IsAssignableFrom(classType) || 58typeof(ContentElement).IsAssignableFrom(classType) || 59typeof(UIElement3D).IsAssignableFrom(classType),
Core\CSharp\System\Windows\Media\Animation\AnimationStorage.cs (1)
1057return dp.PropertyType.IsAssignableFrom(animation.TargetPropertyType)
Core\CSharp\System\Windows\Media\CharacterMetricsDictionary.cs (1)
225if (!elementType.IsAssignableFrom(typeof(SC.DictionaryEntry)))
Core\CSharp\System\Windows\Media\CultureSpecificStringDictionary.cs (1)
191if (!elementType.IsAssignableFrom(typeof(SC.DictionaryEntry)))
Core\CSharp\System\Windows\Media\FamilyMapCollection.cs (1)
112if (!elementType.IsAssignableFrom(typeof(FamilyTypeface)))
Core\CSharp\System\Windows\Media\FamilyTypefaceCollection.cs (1)
393if (!elementType.IsAssignableFrom(typeof(FamilyTypeface)))
PresentationFramework (372)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (10)
1019if (typeof(Run).IsAssignableFrom(elementType) || 1020typeof(BlockUIContainer).IsAssignableFrom(elementType)) 1026else if (typeof(Table).IsAssignableFrom(elementType) || 1027typeof(Floater).IsAssignableFrom(elementType) || 1028typeof(Figure).IsAssignableFrom(elementType)) 1035if (typeof(Run).IsAssignableFrom(elementType) || 1036typeof(BlockUIContainer).IsAssignableFrom(elementType)) 1045if (typeof(TableCell).IsAssignableFrom(elementType) || 1046typeof(Floater).IsAssignableFrom(elementType) || 1047typeof(Figure).IsAssignableFrom(elementType))
src\Framework\MS\Internal\Data\ClrBindingWorker.cs (1)
95else if (targetType.IsAssignableFrom(typeof(XmlDataCollection)))
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (10)
76(!targetToSource && targetType.IsAssignableFrom(sourceType))) 142if (typeof(IListSource).IsAssignableFrom(sourceType) && 143targetType.IsAssignableFrom(typeof(IList))) 160if ((canConvertTo || targetType.IsAssignableFrom(sourceType)) && 161(!targetToSource || canConvertFrom || sourceType.IsAssignableFrom(targetType))) 172if ((canConvertFrom || targetType.IsAssignableFrom(sourceType)) && 173(!targetToSource || canConvertTo || sourceType.IsAssignableFrom(targetType))) 331( (o != null && destinationType.IsAssignableFrom(o.GetType())) || 589if (o != null && _sourceType.IsAssignableFrom(o.GetType())) 627if ((o != null && _targetType.IsAssignableFrom(o.GetType())) ||
src\Framework\MS\Internal\Data\IndexedEnumerable.cs (1)
518if (indexerParameters[0].ParameterType.IsAssignableFrom(typeof(int)))
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (3)
669typeof(DependencyObject).IsAssignableFrom(_arySVS[_arySVS.Length-1].type); 1369if (paramType.IsAssignableFrom(pInfo.type)) 1419if (arg == null && paramType.IsAssignableFrom(typeof(string)))
src\Framework\MS\Internal\Data\ViewManager.cs (1)
587if (!typeof(ICollectionView).IsAssignableFrom(collectionViewType))
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (3)
406while (typeof(TextElement).IsAssignableFrom(position.ParentType)) 449while (typeof(TextElement).IsAssignableFrom(position.ParentType)) 465while (typeof(TextElement).IsAssignableFrom(position.ParentType))
src\Framework\MS\Internal\Helper.cs (9)
689if (!typeof(MarkupExtension).IsAssignableFrom(memberType) || 690!memberType.IsAssignableFrom(markupExtension.GetType())) 710if (!typeof(BindingBase).IsAssignableFrom(markupExtension.GetType()) || 711!typeof(Collection<BindingBase>).IsAssignableFrom(targetProperty.GetType())) 734if (!typeof(BindingBase).IsAssignableFrom(markupExtension.GetType()) || 735!typeof(Collection<BindingBase>).IsAssignableFrom(targetType)) 746if (typeof(Setter).IsAssignableFrom(type)) 750else if (typeof(DataTrigger).IsAssignableFrom(type)) 754else if (typeof(Condition).IsAssignableFrom(type))
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
697if(!(typeof(T).IsAssignableFrom(typeof(System.WeakReference))))
src\Framework\System\Windows\Controls\BorderGapMaskConverter.cs (5)
51!doubleType.IsAssignableFrom(values[0].GetType()) || 52!doubleType.IsAssignableFrom(values[1].GetType()) || 53!doubleType.IsAssignableFrom(values[2].GetType()) ) 59if (!(doubleType.IsAssignableFrom(paramType) || typeof(string).IsAssignableFrom(paramType)))
src\Framework\System\Windows\Controls\DataGridAutoGeneratingColumnEventArgs.cs (2)
112typeof(PropertyDescriptor).IsAssignableFrom(value.GetType()) || 113typeof(PropertyInfo).IsAssignableFrom(value.GetType()),
src\Framework\System\Windows\Controls\DataGridColumn.cs (4)
1177else if (typeof(string).IsAssignableFrom(propertyType)) 1181else if (typeof(bool).IsAssignableFrom(propertyType)) 1185else if (typeof(Uri).IsAssignableFrom(propertyType)) 1195if (!typeof(IComparable).IsAssignableFrom(propertyType))
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1473if (style != null && !style.TargetType.IsAssignableFrom(typeof(GridViewColumnHeader)))
src\Framework\System\Windows\Controls\ItemsPanelTemplate.cs (1)
134if (!typeof(Panel).IsAssignableFrom(root.Type))
src\Framework\System\Windows\Controls\MenuScrollingVisibilityConverter.cs (6)
59!typeof(Visibility).IsAssignableFrom(values[0].GetType()) || 60!doubleType.IsAssignableFrom(values[1].GetType()) || 61!doubleType.IsAssignableFrom(values[2].GetType()) || 62!doubleType.IsAssignableFrom(values[3].GetType()) ) 68if (!(doubleType.IsAssignableFrom(paramType) || typeof(string).IsAssignableFrom(paramType)))
src\Framework\System\Windows\Controls\Primitives\Selector.cs (1)
652if (!knownType.IsAssignableFrom(itemType))
src\Framework\System\Windows\ControlTemplate.cs (3)
141if (!typeof(Control).IsAssignableFrom(targetType) && 142!typeof(Page).IsAssignableFrom(targetType) && 143!typeof(PageFunctionBase).IsAssignableFrom(targetType))
src\Framework\System\Windows\Data\BindingExpression.cs (2)
1323&& !targetType.IsAssignableFrom(value.GetType())) 2185if (sourceType.IsAssignableFrom(value.GetType()))
src\Framework\System\Windows\Data\CollectionView.cs (1)
1545if (typeof(ICustomTypeProvider).IsAssignableFrom(type))
src\Framework\System\Windows\Data\CollectionViewSource.cs (1)
208typeof(ICollectionView).IsAssignableFrom(type);
src\Framework\System\Windows\DeferrableContentConverter.cs (1)
31if (typeof(Stream).IsAssignableFrom(sourceType) || sourceType == typeof(byte[]))
src\Framework\System\Windows\Documents\DPTypeDescriptorContext.cs (1)
68else if (typeof(CultureInfo).IsAssignableFrom(property.PropertyType)) //NumberSubstitution.CultureOverrideProperty
src\Framework\System\Windows\Documents\Paragraph.cs (2)
263typeof(LineBreak).IsAssignableFrom(navigator.ParentType) || 264typeof(AnchoredBlock).IsAssignableFrom(navigator.ParentType))
src\Framework\System\windows\Documents\TextEditor.cs (2)
351if (((Type)_registeredEditingTypes[i]).IsAssignableFrom(controlType)) 359if (controlType.IsAssignableFrom((Type)_registeredEditingTypes[i]))
src\Framework\System\windows\Documents\TextEditorSelection.cs (2)
131if (!typeof(BlockUIContainer).IsAssignableFrom(position.ParentType)) 2451while (typeof(Inline).IsAssignableFrom(navigator.ParentType))
src\Framework\System\windows\Documents\TextEditorSpelling.cs (1)
211if (typeof(Run).IsAssignableFrom(textStart.ParentType) &&
src\Framework\System\windows\Documents\TextEditorTyping.cs (4)
835if (typeof(ListItem).IsAssignableFrom(position.ParentType) && 851typeof(ListItem).IsAssignableFrom(position.ParentType)) 884typeof(Inline).IsAssignableFrom(navigator.ParentType)) 898return typeof(ListItem).IsAssignableFrom(navigator.ParentType);
src\Framework\System\Windows\Documents\TextElementCollection.cs (1)
633if (elementType == null || !elementType.IsAssignableFrom(typeof(TextElementType)))
src\Framework\System\Windows\Documents\TextPointerBase.cs (22)
210typeof(Inline).IsAssignableFrom(backwardType) && !TextSchema.IsMergeableInline(backwardType) && !typeof(Run).IsAssignableFrom(forwardType) && 214typeof(Inline).IsAssignableFrom(forwardType) && !TextSchema.IsMergeableInline(forwardType) && !typeof(Run).IsAssignableFrom(backwardType) && 238typeof(ListItem).IsAssignableFrom(parentType) || 239typeof(TableCell).IsAssignableFrom(parentType); 244typeof(FlowDocumentView).IsAssignableFrom(parentType) || 245typeof(FlowDocument).IsAssignableFrom(parentType); 261typeof(Table).IsAssignableFrom(position.GetElementType(LogicalDirection.Forward))); 268return (typeof(BlockUIContainer).IsAssignableFrom(position.ParentType)); 289while (parentType != null && allowedParentType.IsAssignableFrom(parentType)) 291if (limitingType.IsAssignableFrom(parentType)) 370if (typeof(Inline).IsAssignableFrom(elementType) && !TextSchema.IsMergeableInline(elementType)) 599if (!typeof(Inline).IsAssignableFrom(elementType)) 718return typeof(TableRow).IsAssignableFrom(thisPosition.ParentType) && 732!typeof(Inline).IsAssignableFrom(thisPosition.GetElementType(LogicalDirection.Backward)); 1177!typeof(Inline).IsAssignableFrom(thisNavigator.GetElementType(direction)) && 1185!typeof(Inline).IsAssignableFrom(thisNavigator.GetElementType(oppositeDirection)) && 1500!typeof(Inline).IsAssignableFrom(position.ParentType)) 1532if (typeof(LineBreak).IsAssignableFrom(neighbor) || 1533typeof(Paragraph).IsAssignableFrom(neighbor)) 1539else if (lineBreakType.IsAssignableFrom(neighbor))
src\Framework\System\Windows\Documents\TextRangeBase.cs (17)
366!typeof(Inline).IsAssignableFrom(navigator.GetElementType(direction)) // 371!typeof(Inline).IsAssignableFrom(navigator.ParentType)) 485while (!typeof(Paragraph).IsAssignableFrom(position.ParentType) && 492if (typeof(Paragraph).IsAssignableFrom(position.ParentType)) 534while (typeof(Inline).IsAssignableFrom(startNavigator.ParentType)) 538while (typeof(Inline).IsAssignableFrom(endNavigator.ParentType)) 701if (typeof(Paragraph).IsAssignableFrom(elementType) || 702typeof(BlockUIContainer).IsAssignableFrom(elementType)) 706else if (typeof(LineBreak).IsAssignableFrom(elementType)) 711else if (typeof(List).IsAssignableFrom(elementType)) 727if (typeof(AnchoredBlock).IsAssignableFrom(elementType)) 732else if (typeof(List).IsAssignableFrom(elementType) && navigator is TextPointer) 737else if (typeof(ListItem).IsAssignableFrom(elementType)) 782typeof(TableCell).IsAssignableFrom(navigator.ParentType)) 1266!typeof(AnchoredBlock).IsAssignableFrom(start.ParentType)) 1859while (outerAnchoredBlock != null && !typeof(AnchoredBlock).IsAssignableFrom(outerAnchoredBlock.GetType())) 1901while (outerAnchoredBlock != null && !typeof(AnchoredBlock).IsAssignableFrom(outerAnchoredBlock.GetType()))
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (28)
204if (elementLevel == EmptyDocumentDepth && typeof(Run).IsAssignableFrom(rangeStart.ParentType)) 366while (!typeof(TableRow).IsAssignableFrom(pointer.ParentType)) 368Invariant.Assert(typeof(TextElement).IsAssignableFrom(pointer.ParentType), "pointer must be still in a scope of TextElement"); 371Invariant.Assert(typeof(TableRow).IsAssignableFrom(pointer.ParentType), "pointer must be in a scope of TableRow"); 437Invariant.Assert(typeof(TextElement).IsAssignableFrom(thisElement.ParentType), "thisElement is expected to be a TextElement"); 672typeof(Paragraph).IsAssignableFrom(contextType) || 673typeof(Inline).IsAssignableFrom(contextType) && !typeof(AnchoredBlock).IsAssignableFrom(contextType)) 881&& typeof(Inline).IsAssignableFrom(parentContext.ParentType)) 899if ((property == Block.MarginProperty && (typeof(Paragraph).IsAssignableFrom(propertyOwnerType) || typeof(List).IsAssignableFrom(propertyOwnerType))) 901(property == Block.PaddingProperty) && typeof(List).IsAssignableFrom(propertyOwnerType)) 1546Invariant.Assert(itemType.IsAssignableFrom(start.GetAdjacentElement(LogicalDirection.Forward).GetType()), "The first pasted fragment item is expected to be a " + itemType.Name); 1547Invariant.Assert(itemType.IsAssignableFrom(end.GetAdjacentElement(LogicalDirection.Backward).GetType()), "The last pasted fragment item is expected to be a " + itemType.Name); 1553Invariant.Assert(!(backwardFromStart == TextPointerContext.ElementEnd) || itemType.IsAssignableFrom(start.GetAdjacentElement(LogicalDirection.Backward).GetType()), "An element preceding a pasted fragment is expected to be a " + itemType.Name); 1555Invariant.Assert(!(forwardFromEnd == TextPointerContext.ElementStart) || itemType.IsAssignableFrom(end.GetAdjacentElement(LogicalDirection.Forward).GetType()), "An element following a pasted fragment is expected to be a " + itemType.Name); 1648else if (targetType.IsAssignableFrom(element.GetType())) 1703while (typeof(TextElement).IsAssignableFrom(runningEnd.ParentType) && !runningEnd.HasEqualScope(commonAncestor)) 1722if (typeof(TextElement).IsAssignableFrom(commonAncestor.ParentType)) 1747if (typeof(TableRow).IsAssignableFrom(commonAncestor.ParentType) || 1748typeof(TableRowGroup).IsAssignableFrom(commonAncestor.ParentType) || 1749typeof(Table).IsAssignableFrom(commonAncestor.ParentType) || 1750typeof(BlockUIContainer).IsAssignableFrom(commonAncestor.ParentType) || 1751typeof(List).IsAssignableFrom(commonAncestor.ParentType) || 1752typeof(Inline).IsAssignableFrom(commonAncestor.ParentType) && TextSchema.HasTextDecorations(commonAncestor.GetValue(Inline.TextDecorationsProperty))) 1762while (typeof(TextElement).IsAssignableFrom(navigator.ParentType)) 1901Invariant.Assert(typeof(Hyperlink).IsAssignableFrom(textReader.GetElementType(LogicalDirection.Forward))); 1950!typeof(Hyperlink).IsAssignableFrom(hyperlinkStart.ParentType))
src\Framework\System\Windows\Documents\TextSchema.cs (105)
133if (typeof(Hyperlink).IsAssignableFrom(childType) || 134typeof(AnchoredBlock).IsAssignableFrom(childType)) 188if (typeof(Inline).IsAssignableFrom(newType)) 190return typeof(Inline).IsAssignableFrom(siblingType); 192else if (typeof(Block).IsAssignableFrom(newType)) 194return typeof(Block).IsAssignableFrom(siblingType); 196else if (typeof(TableRowGroup).IsAssignableFrom(newType)) 198return typeof(TableRowGroup).IsAssignableFrom(siblingType); 200else if (typeof(TableRow).IsAssignableFrom(newType)) 202return typeof(TableRow).IsAssignableFrom(siblingType); 204else if (typeof(TableCell).IsAssignableFrom(newType)) 206return typeof(TableCell).IsAssignableFrom(siblingType); 208else if (typeof(ListItem).IsAssignableFrom(newType)) 210return typeof(ListItem).IsAssignableFrom(siblingType); 222if (typeof(TextElement).IsAssignableFrom(position.ParentType) && 225if (typeof(Hyperlink).IsAssignableFrom(childType) || 226typeof(AnchoredBlock).IsAssignableFrom(childType)) 237Invariant.Assert(!typeof(TextElement).IsAssignableFrom(parentType)); 263typeof(Run).IsAssignableFrom(elementType) || 264typeof(Span).IsAssignableFrom(elementType); 279return typeof(Inline).IsAssignableFrom(elementType) && !IsFormattingType(elementType); 309typeof(Paragraph).IsAssignableFrom(elementType) || 310typeof(ListItem).IsAssignableFrom(elementType) || 311typeof(List).IsAssignableFrom(elementType) || 312typeof(Section).IsAssignableFrom(elementType); 329typeof(Paragraph).IsAssignableFrom(elementType) || 330typeof(BlockUIContainer).IsAssignableFrom(elementType); 337typeof(Block).IsAssignableFrom(type)); 343typeof(LineBreak).IsAssignableFrom(type)); 368if (typeof(Run).IsAssignableFrom(type)) 376else if (typeof(Hyperlink).IsAssignableFrom(type)) 380else if (typeof(Span).IsAssignableFrom(type)) 388else if (typeof(InlineUIContainer).IsAssignableFrom(type)) 392else if (typeof(LineBreak).IsAssignableFrom(type)) 396else if (typeof(Floater).IsAssignableFrom(type)) 400else if (typeof(Figure).IsAssignableFrom(type)) 407else if (typeof(Paragraph).IsAssignableFrom(type)) 411else if (typeof(Section).IsAssignableFrom(type)) 415else if (typeof(List).IsAssignableFrom(type)) 419else if (typeof(Table).IsAssignableFrom(type)) 423else if (typeof(BlockUIContainer).IsAssignableFrom(type)) 430else if (typeof(ListItem).IsAssignableFrom(type)) 434else if (typeof(TableColumn).IsAssignableFrom(type)) 438else if (typeof(TableRowGroup).IsAssignableFrom(type)) 442else if (typeof(TableRow).IsAssignableFrom(type)) 446else if (typeof(TableCell).IsAssignableFrom(type)) 459if (typeof(TableCell).IsAssignableFrom(type)) 464if (typeof(Block).IsAssignableFrom(type) || typeof(FlowDocument).IsAssignableFrom(type)) 469Invariant.Assert(typeof(TextElement).IsAssignableFrom(type) || typeof(TableColumn).IsAssignableFrom(type), 482if (typeof(Run).IsAssignableFrom(type)) 490else if (typeof(Hyperlink).IsAssignableFrom(type)) 494else if (typeof(Span).IsAssignableFrom(type)) 502else if (typeof(InlineUIContainer).IsAssignableFrom(type)) 506else if (typeof(LineBreak).IsAssignableFrom(type)) 510else if (typeof(Floater).IsAssignableFrom(type)) 514else if (typeof(Figure).IsAssignableFrom(type)) 521else if (typeof(Paragraph).IsAssignableFrom(type)) 525else if (typeof(Section).IsAssignableFrom(type)) 529else if (typeof(List).IsAssignableFrom(type)) 533else if (typeof(Table).IsAssignableFrom(type)) 537else if (typeof(BlockUIContainer).IsAssignableFrom(type)) 544else if (typeof(ListItem).IsAssignableFrom(type)) 548else if (typeof(TableColumn).IsAssignableFrom(type)) 552else if (typeof(TableRowGroup).IsAssignableFrom(type)) 556else if (typeof(TableRow).IsAssignableFrom(type)) 560else if (typeof(TableCell).IsAssignableFrom(type)) 764typeof(double).IsAssignableFrom(propertyType) || 765typeof(long).IsAssignableFrom(propertyType) || 766typeof(int).IsAssignableFrom(propertyType) || 767typeof(Thickness).IsAssignableFrom(propertyType); 811typeof(Run).IsAssignableFrom(parentType) || 812typeof(TextBox).IsAssignableFrom(parentType) || 813typeof(PasswordBox).IsAssignableFrom(parentType)) 822else if (typeof(TextBlock).IsAssignableFrom(parentType)) 824return typeof(Inline).IsAssignableFrom(childType) && 825!typeof(AnchoredBlock).IsAssignableFrom(childType); 828else if (typeof(Hyperlink).IsAssignableFrom(parentType)) 830return typeof(Inline).IsAssignableFrom(childType) && 831!typeof(Hyperlink).IsAssignableFrom(childType) && 832!typeof(AnchoredBlock).IsAssignableFrom(childType); 835else if (typeof(Span).IsAssignableFrom(parentType) || 836typeof(Paragraph).IsAssignableFrom(parentType) || 837typeof(AccessText).IsAssignableFrom(parentType)) 839return typeof(Inline).IsAssignableFrom(childType); 842else if (typeof(InlineUIContainer).IsAssignableFrom(parentType)) 844return typeof(UIElement).IsAssignableFrom(childType); 847else if (typeof(List).IsAssignableFrom(parentType)) 849return typeof(ListItem).IsAssignableFrom(childType); 852else if (typeof(Table).IsAssignableFrom(parentType)) 854return typeof(TableRowGroup).IsAssignableFrom(childType); 856else if (typeof(TableRowGroup).IsAssignableFrom(parentType)) 858return typeof(TableRow).IsAssignableFrom(childType); 860else if (typeof(TableRow).IsAssignableFrom(parentType)) 862return typeof(TableCell).IsAssignableFrom(childType); 867typeof(Section).IsAssignableFrom(parentType) || 868typeof(ListItem).IsAssignableFrom(parentType) || 869typeof(TableCell).IsAssignableFrom(parentType) || 870typeof(Floater).IsAssignableFrom(parentType) || 871typeof(Figure).IsAssignableFrom(parentType) || 872typeof(FlowDocument).IsAssignableFrom(parentType)) 874return typeof(Block).IsAssignableFrom(childType); 877else if (typeof(BlockUIContainer).IsAssignableFrom(parentType)) 879return typeof(UIElement).IsAssignableFrom(childType);
src\Framework\System\Windows\FrameworkElementFactory.cs (6)
91if (!typeof(FrameworkElement).IsAssignableFrom(value) && 92!typeof(FrameworkContentElement).IsAssignableFrom(value) && 93!typeof(Visual3D).IsAssignableFrom(value)) 584if (!typeof(IAddChild).IsAssignableFrom(_type)) 1192if (typeof(ContentPresenter).IsAssignableFrom(_type)) 1241else if (typeof(GridViewRowPresenter).IsAssignableFrom(_type))
src\Framework\System\Windows\FrameworkTemplate.cs (2)
387typeof(FrameworkContentElement).IsAssignableFrom(templateRoot.Type)) 591if (typeof(ResourceDictionary).IsAssignableFrom(type.UnderlyingType))
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
1085!_context.CurrentFrame.Member.Type.UnderlyingType.IsAssignableFrom(typeof(String)))
src\Framework\System\Windows\Markup\Baml2006\WpfKnownType.cs (6)
262if (typeof(Setter).IsAssignableFrom(_underlyingType)) 266else if (typeof(DataTrigger).IsAssignableFrom(_underlyingType)) 270else if (typeof(Condition).IsAssignableFrom(_underlyingType)) 279if (typeof(Setter).IsAssignableFrom(_underlyingType)) 283else if (typeof(Trigger).IsAssignableFrom(_underlyingType)) 287else if (typeof(Condition).IsAssignableFrom(_underlyingType))
src\Framework\System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (1)
55if (!runtimeType.IsAssignableFrom(type.GetType()))
src\Framework\System\Windows\Markup\Baml2006\WpfXamlType.cs (7)
98else if (typeof(ResourceDictionary).IsAssignableFrom(UnderlyingType)) 490if (typeof(IDictionary).IsAssignableFrom(UnderlyingType)) 494if (typeof(IList).IsAssignableFrom(UnderlyingType)) 499if (typeof(System.Windows.Documents.DocumentReferenceCollection).IsAssignableFrom(UnderlyingType) || 500typeof(System.Windows.Documents.PageContentCollection).IsAssignableFrom(UnderlyingType)) 506if (typeof(ICollection<System.Windows.Data.XmlNamespaceMapping>).IsAssignableFrom(UnderlyingType) 525return typeof(System.Windows.Data.XmlNamespaceMappingCollection).IsAssignableFrom(UnderlyingType);
src\Framework\System\Windows\Markup\BamlRecordReader.cs (13)
882typeof(MarkupExtension).IsAssignableFrom(elementType)) 912ReaderFlags flags = (typeof(DependencyObject).IsAssignableFrom(elementType) ? ReaderFlags.DependencyObject : 915if (typeof(IDictionary).IsAssignableFrom(elementType)) 919else if (typeof(IList).IsAssignableFrom(elementType)) 923else if (typeof(ArrayExtension).IsAssignableFrom(elementType)) 1282ReaderFlags flags = (elementType.IsAssignableFrom(typeof(DependencyObject)) ? 1342if (typeof(IList).IsAssignableFrom(propertyDefinition.PropertyType)) 1670if (!paramInfo.ParameterType.IsAssignableFrom(param.GetType())) 2042if (typeof(IXmlSerializable).IsAssignableFrom(pi.PropertyType)) 2052if (typeof(IXmlSerializable).IsAssignableFrom(dp.PropertyType)) 3079if (typeof(IList).IsAssignableFrom(expectedType)) 3089else if (typeof(IEnumerable).IsAssignableFrom(expectedType) && 4935if (isMarkupExtension || parentContext.ExpectedType.IsAssignableFrom(elementType))
src\Framework\System\Windows\Markup\BamlRecords.cs (6)
484return (KnownTypes.Types[(int)KnownElements.IAddChildInternal].IsAssignableFrom( parentObjectType )); 494else if (typeof(IDictionary).IsAssignableFrom(propertyType)) 498else if ((typeof(IList).IsAssignableFrom(propertyType) || 500(typeof(IEnumerable).IsAssignableFrom(propertyType) && !propertyCanWrite))) 4953|| (KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(propertyMember.GetType())), 4996KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(PropertyMember.GetType( )) )
src\Framework\System\Windows\Markup\BamlRecordWriter.cs (8)
358if (typeof(String).IsAssignableFrom(xamlElementNode.ElementType) || 359KnownTypes.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlElementNode.ElementType) || 360KnownTypes.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlElementNode.ElementType)) 379else if (_deferLoadingSupport && KnownTypes.Types[(int)KnownElements.ResourceDictionary].IsAssignableFrom(xamlElementNode.ElementType)) 802if (!typeof(String).IsAssignableFrom(xamlKeyElementNode.ElementType) && 803!KnownTypes.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) && 804!KnownTypes.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) && 805!KnownTypes.Types[(int)KnownElements.ResourceKey].IsAssignableFrom(xamlKeyElementNode.ElementType))
src\Framework\System\Windows\Markup\BamlWriter.cs (1)
1163if(mostDerived == null || mostDerived.DeclaringType.IsAssignableFrom(pi.DeclaringType))
src\Framework\System\Windows\Markup\MarkupExtensionParser.cs (1)
613else if (!KnownTypes.Types[(int)KnownElements.MarkupExtension].IsAssignableFrom(targetType))
src\Framework\System\Windows\Markup\ParserContext.cs (2)
901if (attributeType.IsAssignableFrom(constructorArgumentType)) 905else if (attributeType.IsAssignableFrom(markupExtensionBracketCharacterType))
src\Framework\System\Windows\Markup\Primitives\ElementMarkupObject.cs (5)
458else if (value is string && PropertyType.IsAssignableFrom(typeof(object))) 512(typeof(IList).IsAssignableFrom(PropertyType) || 513typeof(IDictionary).IsAssignableFrom(PropertyType) || 514typeof(Freezable).IsAssignableFrom(PropertyType) || 515typeof(FrameworkElementFactory).IsAssignableFrom(PropertyType))) &&
src\Framework\System\Windows\Markup\Primitives\ExtensionSimplifierMarkupObject.cs (1)
242!typeof(MarkupExtension).IsAssignableFrom(item.ObjectType))
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (9)
491if (typeof(MarkupExtension).IsAssignableFrom(item.ObjectType) && 892typeof(FrameworkTemplate).IsAssignableFrom(descriptor.ComponentType) && 911!typeof(IList).IsAssignableFrom(descriptor.PropertyType)) 929property.PropertyType.IsAssignableFrom(typeof(string)) ) 1030if (property.PropertyType.IsAssignableFrom(arrayExt.Type.MakeArrayType())) 1036else if (property.PropertyType.IsAssignableFrom(firstItem.ObjectType)) 1058if (typeof(MarkupExtension).IsAssignableFrom(tagType) && 1168return typeof(IEnumerable).IsAssignableFrom(type) || 1169typeof(Array).IsAssignableFrom(type);
src\Framework\System\Windows\Markup\WpfXamlLoader.cs (2)
368if (typeof(DependencyObject).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 381typeof(Style).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType))
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (7)
711if(!propType.IsAssignableFrom(obj.GetType())) 1381if (pis == null || pis.Length != 2 || !dependencyObjectType.IsAssignableFrom(pis[0].ParameterType)) 1489!objectType.IsAssignableFrom(owner)) 1544if (pis == null || pis.Length != 2 || !dependencyObjectType.IsAssignableFrom(pis[0].ParameterType)) 1911if (KnownTypes.Types[(int)KnownElements.FrameworkElement].IsAssignableFrom(typeAndSerializer.ObjectType) || 1912KnownTypes.Types[(int)KnownElements.FrameworkContentElement].IsAssignableFrom(typeAndSerializer.ObjectType)) 2809else if (KnownTypes.Types[(int)KnownElements.FrameworkTemplate].IsAssignableFrom(objectType))
src\Framework\System\Windows\PropertyPath.cs (1)
826if (value == null && type.IsAssignableFrom(typeof(string)))
src\Framework\System\Windows\Style.cs (4)
186if (!typeof(FrameworkElement).IsAssignableFrom(value) && 187!typeof(FrameworkContentElement).IsAssignableFrom(value) && 494if(!TargetType.IsAssignableFrom(elementType)) 526!_basedOn.TargetType.IsAssignableFrom(_targetType))
src\Framework\System\Windows\StyleHelper.cs (2)
682if (typeof(MarkupExtension).IsAssignableFrom(valueType)) 690else if (typeof(Freezable).IsAssignableFrom(valueType))
src\Framework\System\Windows\TemplateContent.cs (35)
123(typeof(FrameworkTemplate).IsAssignableFrom(CurrentFrame.Type.UnderlyingType) || 124typeof(Style).IsAssignableFrom(CurrentFrame.Type.UnderlyingType))); 148(typeof(FrameworkTemplate).IsAssignableFrom(CurrentFrame.Type.UnderlyingType) || 149typeof(Style).IsAssignableFrom(CurrentFrame.Type.UnderlyingType))); 501if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 502typeof(FrameworkContentElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 529if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 530typeof(FrameworkContentElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 554if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 555typeof(FrameworkContentElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 571if (typeof(ContentPresenter).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 592if (typeof(GridViewRowPresenter).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 621if (typeof(GridViewRowPresenter).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 628else if (typeof(ContentPresenter).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 684IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 686IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 732if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 733typeof(FrameworkContentElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 743if (typeof(ContentPresenter).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) 798if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 799typeof(FrameworkContentElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 889if (!typeof(FrameworkElement).IsAssignableFrom(parentType.UnderlyingType) && 890!typeof(FrameworkContentElement).IsAssignableFrom(parentType.UnderlyingType)) 985if (typeof(FrameworkTemplate).IsAssignableFrom(xamlReader.Type.UnderlyingType)) 990else if (typeof(Style).IsAssignableFrom(xamlReader.Type.UnderlyingType)) 1013if (typeof(StaticResourceExtension).IsAssignableFrom(xamlReader.Type.UnderlyingType)) 1046if (xamlReader.Value != null && typeof(StaticResourceExtension).IsAssignableFrom(xamlReader.Value.GetType())) 1096if (typeof(IList).IsAssignableFrom(property.PropertyType)) 1104if (typeof(IDictionary).IsAssignableFrom(property.PropertyType)) 1229typeof(Freezable).IsAssignableFrom(type) 1237(typeof(MarkupExtension).IsAssignableFrom(type) 1239!typeof(StaticResourceExtension).IsAssignableFrom(type)) 1242typeof(Style).IsAssignableFrom(type) 1244typeof(FrameworkTemplate).IsAssignableFrom(type) 1247typeof(System.Windows.Data.CollectionViewSource).IsAssignableFrom(type)
PresentationFramework.Aero (3)
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (3)
42!typeof(Brush).IsAssignableFrom(values[0].GetType()) || 43!doubleType.IsAssignableFrom(values[1].GetType()) || 44!doubleType.IsAssignableFrom(values[2].GetType()))
PresentationFramework.Classic (5)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (5)
52!typeof(Brush).IsAssignableFrom(values[0].GetType()) || 53!typeof(bool).IsAssignableFrom(values[1].GetType()) || 54!doubleType.IsAssignableFrom(values[2].GetType()) || 55!doubleType.IsAssignableFrom(values[3].GetType()) || 56!doubleType.IsAssignableFrom(values[4].GetType()))
PresentationFramework.Luna (5)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (5)
52!typeof(Brush).IsAssignableFrom(values[0].GetType()) || 53!typeof(bool).IsAssignableFrom(values[1].GetType()) || 54!doubleType.IsAssignableFrom(values[2].GetType()) || 55!doubleType.IsAssignableFrom(values[3].GetType()) || 56!doubleType.IsAssignableFrom(values[4].GetType()))
PresentationFramework.Royale (5)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (5)
52!typeof(Brush).IsAssignableFrom(values[0].GetType()) || 53!typeof(bool).IsAssignableFrom(values[1].GetType()) || 54!doubleType.IsAssignableFrom(values[2].GetType()) || 55!doubleType.IsAssignableFrom(values[3].GetType()) || 56!doubleType.IsAssignableFrom(values[4].GetType()))
System (27)
compmod\system\collections\generic\linkedlist.cs (2)
431if(!(targetType.IsAssignableFrom(sourceType) || sourceType.IsAssignableFrom(targetType))) {
compmod\system\componentmodel\AttributeCollection.cs (1)
258if (attributeType.IsAssignableFrom(aType))
compmod\system\componentmodel\BindingList.cs (1)
74if (typeof(INotifyPropertyChanged).IsAssignableFrom(typeof(T))) {
compmod\system\componentmodel\design\ServiceObjectContainer.cs (2)
108if (!(serviceInstance is ServiceCreatorCallback) && !serviceInstance.GetType().IsCOMObject && !serviceType.IsAssignableFrom(serviceInstance.GetType())) { 211if (service != null && !service.GetType().IsCOMObject && !serviceType.IsAssignableFrom(service.GetType())) {
compmod\system\componentmodel\PropertyDescriptor.cs (1)
94if (converterType != null && typeof(TypeConverter).IsAssignableFrom(converterType))
compmod\system\componentmodel\ReflectEventDescriptor.cs (2)
91if (type == null || !(typeof(Delegate)).IsAssignableFrom(type)) { 161return(typeof(MulticastDelegate)).IsAssignableFrom(EventType);
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (1)
290if (typeof(INotifyPropertyChanged).IsAssignableFrom(ComponentType)) {
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (6)
534if (receiverType.IsAssignableFrom(componentType)) 1365if (keyType != null && keyType.IsInterface && keyType.IsAssignableFrom(callingType)) 1636if (converterType != null && typeof(TypeConverter).IsAssignableFrom(converterType)) 1662if (converterType != null && typeof(TypeConverter).IsAssignableFrom(converterType)) 1771if (editorType != null && editorBaseType.IsAssignableFrom(editorType)) 1799if (editorType != null && editorBaseType.IsAssignableFrom(editorType))
compmod\system\componentmodel\TypeDescriptor.cs (3)
470if (providerType != null && typeof(TypeDescriptionProvider).IsAssignableFrom(providerType)) 2895if (nodeType != null && type.IsAssignableFrom(nodeType) || nodeType == typeof(object)) 2983if (nodeType != null && type.IsAssignableFrom(nodeType) || nodeType == typeof(object))
compmod\system\diagnostics\traceutils.cs (1)
34if (!baseType.IsAssignableFrom(objectType))
net\System\_UriTypeConverter.cs (1)
46if (typeof(Uri).IsAssignableFrom(sourceType))
net\System\Net\Configuration\AuthenticationModulesSection.cs (1)
89if (!typeof(IAuthenticationModule).IsAssignableFrom(type))
net\System\Net\Configuration\DefaultProxySection.cs (1)
192if (!typeof(IWebProxy).IsAssignableFrom(theType))
net\System\Net\Internal.cs (1)
1638if (!typeof(IWebRequestCreate).IsAssignableFrom(creatorType))
services\monitoring\system\diagnosticts\DiagnosticsConfigurationHandler.cs (1)
193if (!typeof(TraceListener).IsAssignableFrom(t))
sys\system\configuration\SettingsPropertyValue.cs (2)
132if (val != null && !Property.PropertyType.IsAssignableFrom(val.GetType())) // is it the correct type 156if (val != null && !Property.PropertyType.IsAssignableFrom(val.GetType())) // is it the correct type
System.Activities (16)
System\Activities\Activity.cs (1)
1681if (ReflectedInformation.OverloadGroupAttributeType.IsAssignableFrom(attribute.GetType()))
System\Activities\ActivityUtilities.cs (1)
117return handleType.IsAssignableFrom(type);
System\Activities\CodeActivityPublicEnvironmentAccessor.cs (1)
170Fx.Assert(activity is CodeActivity || (codeActivityOfTType != null && codeActivityOfTType.IsAssignableFrom(activity.GetType())), "Expected CodeActivity or CodeActivity<T>");
System\Activities\Debugger\DebugInfo.cs (1)
613if (serviceType.IsAssignableFrom(typeof(TypeDescriptorContext)))
System\Activities\Debugger\XamlDebuggerXmlReader.cs (3)
386if (typeof(Activity).IsAssignableFrom(targetType)) 388if (!typeof(IExpressionContainer).IsAssignableFrom(targetType)) 390if (!typeof(IValueSerializableExpression).IsAssignableFrom(targetType))
System\Activities\Expressions\ExpressionServices.cs (6)
1505if (typeof(RuntimeArgument).IsAssignableFrom(valueType)) 1513else if (typeof(Variable).IsAssignableFrom(valueType)) 1518else if (typeof(DelegateArgument).IsAssignableFrom(valueType)) 1563if (typeof(RuntimeArgument).IsAssignableFrom(valueType)) 1571else if (typeof(Variable).IsAssignableFrom(valueType)) 1576else if (typeof(DelegateArgument).IsAssignableFrom(valueType))
System\Activities\Runtime\CallbackWrapper.cs (1)
273if (!typeof(Activity).IsAssignableFrom(callbackMethod.DeclaringType))
System\Activities\Statements\TryCatch.cs (1)
329else if (catchHandler.ExceptionType.IsAssignableFrom(exceptionType))
System\Activities\XamlIntegration\ExpressionTreeRewriter.cs (1)
31if (typeof(CompiledDataContext).IsAssignableFrom(constExpr.Type) &&
System.Activities.Core.Presentation (36)
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (8)
135if (typeof(FlowStep).IsAssignableFrom(currentFlowElement.GetType())) 149else if (typeof(FlowDecision).IsAssignableFrom(currentFlowElement.GetType())) 190if (typeof(FlowStep).IsAssignableFrom(currentFlowElement.GetType())) 205else if (typeof(FlowDecision).IsAssignableFrom(currentFlowElement.GetType())) 258typeof(Activity).IsAssignableFrom(p.GetType()) || 259typeof(FlowNode).IsAssignableFrom(p.GetType()) || 260(p is Type && typeof(Activity).IsAssignableFrom((Type)p)) || 261(p is Type && typeof(FlowNode).IsAssignableFrom((Type)p)));
System\Activities\Core\Presentation\FlowchartDesigner.Helpers.cs (2)
167Fx.Assert(typeof(Adorner).IsAssignableFrom(adornerType), "Invalid argument"); 176if (adornerType.IsAssignableFrom(adorner.GetType()))
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (5)
634removeConnectionPointsAdorner = !typeof(ConnectionPointsAdorner).IsAssignableFrom(Mouse.DirectlyOver.GetType()); 1642if (typeof(Activity).IsAssignableFrom(droppedObject.GetType())) 1656else if (typeof(FlowNode).IsAssignableFrom(droppedObject.GetType())) 2339if (!typeof(Activity).IsAssignableFrom(draggedType) && 2340!typeof(FlowNode).IsAssignableFrom(draggedType) &&
System\Activities\Core\Presentation\GenericFlowSwitchHelper.cs (4)
197if (typeof(string).IsAssignableFrom(type)) 363if (result == string.Empty && typeof(string).IsAssignableFrom(type)) 398else if (typeof(string).IsAssignableFrom(genericType)) 519return typeArgument.IsEnum || typeof(string).IsAssignableFrom(typeArgument)
System\Activities\Core\Presentation\InteropDesigner.xaml.cs (1)
41InteropDesigner.filter = (type) => activityType.IsAssignableFrom(type);
System\Activities\Core\Presentation\InvokeDelegateDesigner.xaml.cs (1)
147if (!typeof(Argument).IsAssignableFrom(underlyingArgumentType))
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (2)
171Fx.Assert(typeof(Adorner).IsAssignableFrom(adornerType), "Invalid argument"); 181if (adornerType.IsAssignableFrom(adorner.GetType()))
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (1)
1290removeConnectionPointsAdorner = !typeof(ConnectionPointsAdorner).IsAssignableFrom(Mouse.DirectlyOver.GetType());
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (8)
336if (!typeof(Argument).IsAssignableFrom(value)) 352if (currentArgumentType != null && (OutArgumentType.IsAssignableFrom(currentArgumentType) || InOutArgumentType.IsAssignableFrom(currentArgumentType))) 382if (!typeof(Argument).IsAssignableFrom(underlyingArgumentType)) 391if (!typeof(Argument).IsAssignableFrom(underlyingArgumentType)) 623if (InArgumentType.IsAssignableFrom(this.UnderlyingArgumentType)) 628if (OutArgumentType.IsAssignableFrom(this.UnderlyingArgumentType)) 633Fx.Assert(InOutArgumentType.IsAssignableFrom(this.UnderlyingArgumentType), "UnderlyingArgumentType should be of type OutArgumentType");
System\ServiceModel\Activities\Presentation\BindingEditor.xaml.cs (1)
107if (typeof(Binding).IsAssignableFrom(bindingType))
System\ServiceModel\Activities\Presentation\ContentCorrelationTypeExpander.xaml.cs (2)
240|| (typeof(IEnumerable).IsAssignableFrom(type)) || typeof(IDictionary).IsAssignableFrom(type) || type.IsArray
System\ServiceModel\Activities\Presentation\CorrelationInitializerDesigner.xaml.cs (1)
242if (typeof(QueryCorrelationInitializer).IsAssignableFrom(type) && !CorrelationInitializerDesigner.CanUseQueryCorrelationInitializer(activity))
System.Activities.Presentation (141)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\EditingContext.cs (4)
235if (!typeof(ContextItem).IsAssignableFrom(itemType)) 300if (!typeof(ContextItem).IsAssignableFrom(itemType)) 362if (!typeof(ContextItem).IsAssignableFrom(contextItemType)) 405if (!typeof(ContextItem).IsAssignableFrom(contextItemType))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\NewItemFactoryTypeModelToDisplayNameConverter.cs (1)
43if (typeof(string).IsAssignableFrom(targetType))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\newitemfactorytypemodeltotypenameconverter.cs (1)
23if (typeof(string).IsAssignableFrom(targetType))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\PropertyValueToDisplayNameConverter.cs (1)
48if (typeof(string).IsAssignableFrom(targetType))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\PropertyValueToStandardValuesConverter.cs (1)
34Fx.Assert(typeof(IEnumerable).IsAssignableFrom(targetType), "Expecting IEnumerable as the targetType");
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\quickitemtemplateselector.cs (1)
54if (element != null && typeof(ChoiceEditor).IsAssignableFrom(element.GetType()))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (12)
169if (typeof(Array).IsAssignableFrom(property.PropertyType)) 355if (typeof(IList).IsAssignableFrom(propertyType)) 380if (typeof(Array).IsAssignableFrom(propertyType) || typeof(ICollection).IsAssignableFrom(propertyType)) 622else if (typeof(StaticResourceExtension).IsAssignableFrom(valueType)) 626else if (typeof(DynamicResourceExtension).IsAssignableFrom(valueType)) 630else if (typeof(TemplateBindingExtension).IsAssignableFrom(valueType)) 634else if (typeof(Binding).IsAssignableFrom(valueType)) 638else if (typeof(MarkupExtension).IsAssignableFrom(valueType)) 718typeof(StaticExtension).IsAssignableFrom(type) || 884if (typeof(T).IsAssignableFrom(attribute.GetType())) 902if (typeof(T).IsAssignableFrom(attribute.GetType()))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\ExtensibilityMetadataHelper.cs (2)
42if (editorType != null && typeof(PropertyValueEditor).IsAssignableFrom(editorType)) 74if (editorType != null && typeof(CategoryEditor).IsAssignableFrom(editorType))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntry.cs (1)
520if (typeof(System.Windows.Controls.TextBlock).IsAssignableFrom(_properties[0].Parent.ItemType)) {
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntryBase.cs (1)
73return typeof(IList).IsAssignableFrom(this.PropertyType);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValue.cs (1)
260if (typeof(IList).IsAssignableFrom(this.ParentProperty.PropertyType))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelUtilities.cs (3)
76if (resolveReferences && !(typeof(System.Windows.Controls.TextBlock).IsAssignableFrom(property.Parent.ItemType) && 240if (t1.IsAssignableFrom(t2)) 247if (t2.IsAssignableFrom(t1))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (1)
214if (selectedVisual != null && !typeof(Window).IsAssignableFrom(_displayedSelection.PrimarySelection.View.GetType()))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\PropertySelection.cs (1)
687return (GetSelectionStop(element) != null) && typeof(T).IsAssignableFrom(element.GetType()) && VisualTreeUtils.IsVisible(element as UIElement);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\VisualTreeUtils.cs (1)
146while (child != null && !typeof(T).IsAssignableFrom(child.GetType()));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (4)
172if (t.IsAssignableFrom(realCachedType)) 583if (t.IsAssignableFrom(objectType)) 1095public override bool IsAssignableFrom(Type c) { return _baseReflectionType.IsAssignableFrom(c); } 1490if (filterType != null && !filterType.IsAssignableFrom(attr.GetType()))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\CategoryEditor.cs (1)
73if (!typeof(CategoryEditor).IsAssignableFrom(categoryEditorType))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\newitemtypesattribute.cs (1)
94if (!typeof(NewItemFactory).IsAssignableFrom(value))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyValueEditor.cs (1)
74if (!typeof(PropertyValueEditor).IsAssignableFrom(propertyValueEditorType))
System.Activities.Presentation\System\Activities\Presentation\Base\Documents\ViewManagerAttribute.cs (1)
37if (!typeof(ViewManager).IsAssignableFrom(viewManagerType))
System.Activities.Presentation\System\Activities\Presentation\Converters\ArgumentToExpressionConverter.cs (1)
47if (valueExpressionModelItem != null && typeof(ActivityWithResult).IsAssignableFrom(valueExpressionModelItem.ItemType))
System.Activities.Presentation\System\Activities\Presentation\Converters\ArgumentToExpressionModelItemConverter.cs (1)
56if (valueExpressionModelItem != null && typeof(Activity).IsAssignableFrom(valueExpressionModelItem.ItemType))
System.Activities.Presentation\System\Activities\Presentation\Converters\ModelPropertyEntryToModelItemConverter.cs (2)
50values.FirstOrDefault<object>(p => p != null && typeof(CategoryEntry).IsAssignableFrom(p.GetType())); 53values.FirstOrDefault<object>(p => p != null && typeof(FrameworkElement).IsAssignableFrom(p.GetType()));
System.Activities.Presentation\System\Activities\Presentation\Converters\ModelPropertyEntryToOwnerActivityConverter.cs (2)
44if (typeof(Activity).IsAssignableFrom(itemType) || typeof(WorkflowService).IsAssignableFrom(itemType))
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (3)
282if (typeof(Activity).IsAssignableFrom(currentElement.GetType())) 467!typeof(ICompositeView).IsAssignableFrom(visualHit.GetType())) 690if (disallowedType.IsAssignableFrom(type))
System.Activities.Presentation\System\Activities\Presentation\Debugger\AllowBreakpointAttribute.cs (1)
20return typeof(Activity).IsAssignableFrom(breakpointCandidateType) || WorkflowViewService.GetAttribute<AllowBreakpointAttribute>(breakpointCandidateType) != null;
System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (1)
752if (AllowBreakpointAttribute.IsBreakpointAllowed(key.ItemType) && !typeof(IValueSerializableExpression).IsAssignableFrom(key.ItemType))
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (1)
408else if (!typeof(PropertyValueEditor).IsAssignableFrom(editorType))
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
252if (allowedItemType.IsAssignableFrom(draggedType))
System.Activities.Presentation\System\Activities\Presentation\Expressions\ExpressionMorphHelperAttribute.cs (1)
19if (typeof(ExpressionMorphHelper).IsAssignableFrom(expressionMorphHelperType))
System.Activities.Presentation\System\Activities\Presentation\FeatureManager.cs (1)
32if (typeof(Feature).IsAssignableFrom(featureAttribute.Type))
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (1)
456if (typeof(ConnectionPointsAdorner).IsAssignableFrom(Mouse.DirectlyOver.GetType()))
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (2)
77if (typeof(ConnectionPointsAdorner).IsAssignableFrom(Mouse.DirectlyOver.GetType())) 151if (element != null && typeof(INestedFreeFormPanelContainer).IsAssignableFrom(element.GetType()))
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (2)
282while (obj != null && !typeof(INestedFreeFormPanelContainer).IsAssignableFrom(obj.GetType())); 587if (typeof(Connector).IsAssignableFrom(e.Source.GetType()))
System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
43if (!typeof(Activity).IsAssignableFrom(activityType))
System.Activities.Presentation\System\Activities\Presentation\Model\AttachedPropertiesService.cs (2)
38where property.OwnerType.IsAssignableFrom(modelItemType) select property; 43where property.OwnerType.IsAssignableFrom(modelItemType.GetGenericTypeDefinition())
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (7)
50while (item != null && !parentType.IsAssignableFrom(item.ItemType)) 54if (null != item && parentType.IsAssignableFrom(item.ItemType)) 112if (typeof(ModelItem).IsAssignableFrom(oldKey.GetType()) && typeof(ModelItem).IsAssignableFrom(newKey.GetType())) 119if (typeof(ModelItem).IsAssignableFrom(oldKey.GetType())) 127if (typeof(ModelItem).IsAssignableFrom(newKey.GetType())) 522return typeof(T).IsAssignableFrom(item.ItemType);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (8)
225return includeOtherObjects || (typeof(WorkflowViewElement).IsAssignableFrom(viewService.GetDesignerType(type))); 229return !(excludeExpression && modelItem != null && typeof(ITextExpression).IsAssignableFrom(modelItem.ItemType)); 608if (typeof(DynamicActivityProperty).IsAssignableFrom(modelItem.ItemType)) 616else if (typeof(Variable).IsAssignableFrom(modelItem.ItemType)) 703return !typeof(WorkflowService).IsAssignableFrom(item.ItemType) 704&& !typeof(ActivityBuilder).IsAssignableFrom(item.ItemType); 769if (typeof(ITextExpression).IsAssignableFrom(itemToFocus.ItemType)) 775return typeof(WorkflowViewElement).IsAssignableFrom(designerType);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelServiceImpl.cs (1)
57return type.IsAssignableFrom(modelItem.ItemType);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (6)
176if (typeof(IList).IsAssignableFrom(type)) 186if (typeof(IDictionary).IsAssignableFrom(type)) 403|| (!typeof(WorkflowViewElement).IsAssignableFrom(viewService.GetDesignerType(currentModelItem.ItemType))) 443if (typeof(Type).IsAssignableFrom(currentModelItem.ItemType)) 497if (typeof(Type).IsAssignableFrom(property.PropertyType) || property.PropertyType.IsValueType) 877if (typeof(Type).IsAssignableFrom(currentItem.ItemType))
System.Activities.Presentation\System\Activities\Presentation\Model\XamlUtilities.cs (1)
46if (type != null && !type.IsPublic && typeof(TypeConverter).IsAssignableFrom(type))
System.Activities.Presentation\System\Activities\Presentation\TypeUtilities.cs (2)
62if (!constraint.IsAssignableFrom(candidate)) 82return parentObjectType.IsAssignableFrom(childObjectType);
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (12)
194if (null == current || !typeof(DesignTimeArgument).IsAssignableFrom(current.ItemType)) 421if (!typeof(DesignTimeArgument.DefaultValueEditor).IsAssignableFrom(editorType)) 996if (inArgumentTypeReference.IsAssignableFrom(argumentType) && argumentType.IsGenericType) 1000else if (outArgumentTypeReference.IsAssignableFrom(argumentType) && argumentType.IsGenericType) 1004else if (inOutArgumentTypeReference.IsAssignableFrom(argumentType) && argumentType.IsGenericType) 1065else if (null != value && !this.GetArgumentType().IsAssignableFrom(value.GetType())) 1144if (typeof(RequiredArgumentAttribute).IsAssignableFrom(item.ItemType)) 1173foreach (ModelItem toRemove in attributes.Where<ModelItem>(p => typeof(RequiredArgumentAttribute).IsAssignableFrom(p.ItemType))) 1198return this.GetArgumentDirection() != PropertyKind.Property || !type.IsGenericType || !typeof(Argument).IsAssignableFrom(type); 1219if (typeof(Handle).IsAssignableFrom(type)) 1260return (expressionEditorType != currentType && referenceType.IsAssignableFrom(currentType)); 1327if (null != value && !this.GetArgumentType().IsAssignableFrom(value.GetType()))
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
1217typeof(ActivityBuilder).IsAssignableFrom(this.ActivitySchema.ItemType);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (4)
453return (typeof(WorkflowViewElement).IsAssignableFrom(viewService.GetDesignerType(current.ItemType))); 544if (typeof(ActivityBuilder).IsAssignableFrom(modelItem.ItemType)) 640if (typeof(WorkflowViewElement).IsAssignableFrom(source.GetType())) 893if (null != this.ActivitySchema && typeof(ActivityBuilder).IsAssignableFrom(this.ActivitySchema.ItemType))
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
643if (!typeof(ExpressionActivityEditor).IsAssignableFrom(expressionEditorType))
System.Activities.Presentation\System\Activities\Presentation\View\ModelPropertyPathExpanderConverter.cs (1)
32while (convertedValue != null && !typeof(Activity).IsAssignableFrom(convertedValue.ItemType))
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (3)
239if (typeof(ModelItem).IsAssignableFrom(value.GetType())) 243else if (typeof(ModelProperty).IsAssignableFrom(value.GetType())) 247else if (typeof(KeyValuePair<ModelItem, ModelItem>).IsAssignableFrom(value.GetType()))
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (12)
275if (null == current || !typeof(DesignTimeVariable).IsAssignableFrom(current.ItemType)) 517if (!typeof(ExpressionValueEditor).IsAssignableFrom(editorType)) 767if (!((CodeActivityType.IsAssignableFrom(elementType)) || (GenericAsyncCodeActivityType.IsAssignableFrom(elementType)) || 768(AsyncCodeActivityType.IsAssignableFrom(elementType)) || (GenericAsyncCodeActivityType.IsAssignableFrom(elementType)))) 832.Where<ModelProperty>(p => (typeof(DelegateArgument).IsAssignableFrom(p.PropertyType) && null != p.Value)) 903!typeof(Variable).IsAssignableFrom(variableContainer.ItemType.GetGenericArguments()[0])) 919!typeof(Variable).IsAssignableFrom(variableContainer.ItemType.GetGenericArguments()[0])) 1329if (typeof(Handle).IsAssignableFrom(type)) 1350return (expressionEditorType != currentType && referenceType.IsAssignableFrom(currentType)); 1466if (null != designTimeVariable && typeof(DesignTimeVariable).IsAssignableFrom(designTimeVariable.ItemType))
System.Activities.Presentation\System\Activities\Presentation\View\ViewUtilities.cs (3)
27if (typeof(WorkflowViewElement).IsAssignableFrom(parentDesignerType)) 71return typeof(WorkflowViewElement).IsAssignableFrom(viewType) && (!allowDrillIn || options == null || options.AllowDrillIn); 165return parentType.IsAssignableFrom(parentDesignerType);
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (4)
118if (!typeof(IValueSerializableExpression).IsAssignableFrom(type)) 172if (designerType != null && typeof(WorkflowViewElement).IsAssignableFrom(designerType)) 226shouldAppearOnBreadCrumb = (typeof(WorkflowViewElement).IsAssignableFrom(designerType) && 233shouldAppearOnBreadCrumb = typeof(WorkflowViewElement).IsAssignableFrom(designerType);
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (5)
103&& typeof(Activity).IsAssignableFrom(this.AllowedItemType); 253Fx.Assert(typeof(Sequence).IsAssignableFrom(this.Item.ItemType), 284while (null != parent && !typeof(ICompositeViewEvents).IsAssignableFrom(parent.GetType())) 738(itemsToPaste[0] is Type && this.AllowedItemType.IsAssignableFrom((Type)itemsToPaste[0])) || 739this.AllowedItemType.IsAssignableFrom(itemsToPaste[0].GetType()));
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (4)
326while (null != parent && !typeof(ICompositeViewEvents).IsAssignableFrom(parent.GetType())) 702if (this.AllowedItemType.IsAssignableFrom(modelItem.ItemType)) 707else if (droppedObject is Type && this.AllowedItemType.IsAssignableFrom((Type)droppedObject)) 713if (this.AllowedItemType.IsAssignableFrom(droppedObject.GetType()))
System.Activities.Presentation\System\Activities\Presentation\Xaml\ActivityBuilderHelper.cs (3)
18return modelItem.ItemType.IsAssignableFrom(typeof(ActivityBuilder)); 31if (!astAsModelItem.ItemType.IsAssignableFrom(typeof(ActivityBuilder))) 67if (propertyType != null && typeof(Argument).IsAssignableFrom(propertyType))
System.AddIn (6)
System\Addin\Hosting\Store\AddInAdapter.cs (2)
62if (!IContractInReflectionLoaderContext.IsAssignableFrom(type)) 71if (IContractInReflectionLoaderContext.IsAssignableFrom(contractInterface))
System\Addin\Hosting\Store\ContractComponent.cs (1)
39if (!IContractInReflectionLoaderContext.IsAssignableFrom(type))
System\Addin\Hosting\Utils.cs (1)
52System.Diagnostics.Contracts.Contract.Requires(typeof(Attribute).IsAssignableFrom(attributeType));
System\Addin\Pipeline\ContractBase.cs (1)
80if (typeOfIContract.IsAssignableFrom(iface))
System\Addin\Pipeline\ListContractAdapter.cs (1)
33if (!typeof(U).IsSerializable && !typeof(IContract).IsAssignableFrom(typeof(U)))
System.ComponentModel.DataAnnotations (3)
DataAnnotations\CustomValidationAttribute.cs (1)
288if (t.IsAssignableFrom(value.GetType())) {
DataAnnotations\RangeAttribute.cs (1)
164if (!comparableType.IsAssignableFrom(type)) {
DataAnnotations\Validator.cs (1)
307return destinationType.IsAssignableFrom(value.GetType());
System.Configuration (24)
System\Configuration\ConfigurationElement.cs (11)
677if (typeof(ConfigurationElementCollection).IsAssignableFrom(prop.Type)) { 749if (typeof(ConfigurationElementCollection).IsAssignableFrom(propertyType)) { 778else if (typeof(ConfigurationElement).IsAssignableFrom(propertyType)) { 814if (typeof(ConfigurationElement).IsAssignableFrom(type)) { 854if (result != null && typeof(ConfigurationElement).IsAssignableFrom(result.Type)) { 865Debug.Assert(typeof(ConfigurationElement).IsAssignableFrom(type)); 1309if (typeof(ConfigurationElement).IsAssignableFrom(validProp.Type)) { 1318if (!typeof(ConfigurationElement).IsAssignableFrom(validProp.Type)) { 1382typeof(ConfigurationElement).IsAssignableFrom(propToLock.Type)) || // or if not locking elements but the property is a element 1384!typeof(ConfigurationElement).IsAssignableFrom(propToLock.Type)) // or if locking elements but the property is not an element 1625if (propToLock != null && typeof(ConfigurationElement).IsAssignableFrom(propToLock.Type)) {
System\Configuration\ConfigurationLockCollection.cs (2)
115if (!typeof(ConfigurationElement).IsAssignableFrom(propToLock.Type)) { 121if (typeof(ConfigurationElement).IsAssignableFrom(propToLock.Type)) {
System\Configuration\ConfigurationProperty.cs (4)
129if (typeof(ConfigurationElementCollection).IsAssignableFrom(propertyType)) { 174if (typeof(ConfigurationSection).IsAssignableFrom(type)) { 218bool canAssign = _type.IsAssignableFrom(value.GetType()); 286_isConfigurationElementType = typeof(ConfigurationElement).IsAssignableFrom(_type);
System\Configuration\ConfigurationValidatorAttribute.cs (1)
36if (!typeof(ConfigurationValidatorBase).IsAssignableFrom(validator)) {
System\Configuration\GenericEnumConverter.cs (1)
33Debug.Assert(typeof(System.Enum).IsAssignableFrom(value.GetType()), "typeof(System.Enum).IsAssignableFrom(value.GetType())");
System\Configuration\MgmtConfigurationRecord.cs (1)
132if (!typeof(ConfigurationSection).IsAssignableFrom(type)) {
System\Configuration\ProtectedConfigurationSection.cs (1)
58if (!typeof(ProtectedConfigurationProvider).IsAssignableFrom(t)) {
System\Configuration\RuntimeConfigurationRecord.cs (1)
153if (typeof(ConfigurationSection).IsAssignableFrom(type)) {
System\Configuration\SubclassTypeValidator.cs (1)
48if (!_base.IsAssignableFrom((Type)value)) {
System\Configuration\TypeUtil.cs (1)
232if (baseType.IsAssignableFrom(type)) {
System.Core (32)
Microsoft\Scripting\Actions\DynamicMetaObjectBinder.cs (1)
286return obj != null && ComObjectType.IsAssignableFrom(obj.GetType());
Microsoft\Scripting\Ast\BinaryExpression.cs (2)
1339Debug.Assert(typeof(System.MulticastDelegate).IsAssignableFrom(delegateType) && delegateType != typeof(System.MulticastDelegate)); 1476Debug.Assert(typeof(System.MulticastDelegate).IsAssignableFrom(delegateType) && delegateType != typeof(System.MulticastDelegate));
Microsoft\Scripting\Ast\ConstantExpression.cs (1)
132if (value != null && !type.IsAssignableFrom(value.GetType())) {
Microsoft\Scripting\Ast\LambdaExpression.cs (1)
524if (!typeof(MulticastDelegate).IsAssignableFrom(delegateType) || delegateType == typeof(MulticastDelegate)) {
Microsoft\Scripting\Ast\MemberAssignment.cs (1)
75if (!memberType.IsAssignableFrom(expression.Type)) {
Microsoft\Scripting\Ast\MemberListBinding.cs (1)
131if (!typeof(IEnumerable).IsAssignableFrom(listType)) {
Microsoft\Scripting\Ast\MemberMemberBinding.cs (1)
149if (!b.Member.DeclaringType.IsAssignableFrom(type)) {
Microsoft\Scripting\Ast\MethodCallExpression.cs (2)
924parameterType.IsAssignableFrom(argument.GetType())) { 986!(TypeUtils.IsSameOrSubclass(typeof(LambdaExpression), pType) && pType.IsAssignableFrom(arg.GetType()))) {
Microsoft\Scripting\Ast\TypeUtils.cs (4)
164if (!dest.IsValueType && !src.IsValueType && dest.IsAssignableFrom(src)) { 240if (nnSourceType.IsAssignableFrom(nnDestType)) { 244if (nnDestType.IsAssignableFrom(nnSourceType)) { 587return destination.IsAssignableFrom(source);
Microsoft\Scripting\Ast\UnaryExpression.cs (1)
774if (!array.Type.IsArray || !typeof(Array).IsAssignableFrom(array.Type)) {
Microsoft\Scripting\Compiler\ConstantCheck.cs (1)
87if (nnTestType.IsAssignableFrom(nnOperandType)) {
Microsoft\Scripting\Compiler\ILGen.cs (2)
624(nnExprType.IsAssignableFrom(nnType) || // down cast 625nnType.IsAssignableFrom(nnExprType))) // up cast
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (1)
180if (typeof(LambdaExpression).IsAssignableFrom(expr.Type)) {
Microsoft\Scripting\Compiler\LambdaCompiler.Logical.cs (3)
126Debug.Assert(p.Type.IsAssignableFrom(b.Left.Type) || 127p.Type.IsAssignableFrom(nnLeftType)); 133if (!p.Type.IsAssignableFrom(b.Left.Type)) {
System\Linq\SequenceQuery.cs (10)
89if (!typeof(IQueryable<S>).IsAssignableFrom(expression.Type)){ 112if (!typeof(S).IsAssignableFrom(expression.Type)) 200if ((m.Method.IsStatic || m.Method.DeclaringType.IsAssignableFrom(obj.Type)) 249if (type.IsAssignableFrom(expr.Type)) 255if (!type.IsAssignableFrom(expr.Type) && type.IsArray && expr.NodeType == ExpressionType.NewArrayInit) { 257if (type.IsAssignableFrom(strippedType)) { 290if (typeof(IEnumerable).IsAssignableFrom(t)) 362if (!parameterType.IsAssignableFrom(arg.Type)) { 366if (!parameterType.IsAssignableFrom(arg.Type) && 367!parameterType.IsAssignableFrom(StripExpression(arg.Type))) {
System.Data (162)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\EditingContext.cs (4)
235if (!typeof(ContextItem).IsAssignableFrom(itemType)) 300if (!typeof(ContextItem).IsAssignableFrom(itemType)) 362if (!typeof(ContextItem).IsAssignableFrom(contextItemType)) 405if (!typeof(ContextItem).IsAssignableFrom(contextItemType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\NewItemFactoryTypeModelToDisplayNameConverter.cs (1)
43if (typeof(string).IsAssignableFrom(targetType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\newitemfactorytypemodeltotypenameconverter.cs (1)
23if (typeof(string).IsAssignableFrom(targetType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\PropertyValueToDisplayNameConverter.cs (1)
48if (typeof(string).IsAssignableFrom(targetType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\PropertyValueToStandardValuesConverter.cs (1)
34Fx.Assert(typeof(IEnumerable).IsAssignableFrom(targetType), "Expecting IEnumerable as the targetType");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (12)
169if (typeof(Array).IsAssignableFrom(property.PropertyType)) 355if (typeof(IList).IsAssignableFrom(propertyType)) 380if (typeof(Array).IsAssignableFrom(propertyType) || typeof(ICollection).IsAssignableFrom(propertyType)) 622else if (typeof(StaticResourceExtension).IsAssignableFrom(valueType)) 626else if (typeof(DynamicResourceExtension).IsAssignableFrom(valueType)) 630else if (typeof(TemplateBindingExtension).IsAssignableFrom(valueType)) 634else if (typeof(Binding).IsAssignableFrom(valueType)) 638else if (typeof(MarkupExtension).IsAssignableFrom(valueType)) 718typeof(StaticExtension).IsAssignableFrom(type) || 884if (typeof(T).IsAssignableFrom(attribute.GetType())) 902if (typeof(T).IsAssignableFrom(attribute.GetType()))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\ExtensibilityMetadataHelper.cs (2)
42if (editorType != null && typeof(PropertyValueEditor).IsAssignableFrom(editorType)) 74if (editorType != null && typeof(CategoryEditor).IsAssignableFrom(editorType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntry.cs (1)
520if (typeof(System.Windows.Controls.TextBlock).IsAssignableFrom(_properties[0].Parent.ItemType)) {
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntryBase.cs (1)
73return typeof(IList).IsAssignableFrom(this.PropertyType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValue.cs (1)
260if (typeof(IList).IsAssignableFrom(this.ParentProperty.PropertyType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelUtilities.cs (3)
76if (resolveReferences && !(typeof(System.Windows.Controls.TextBlock).IsAssignableFrom(property.Parent.ItemType) && 240if (t1.IsAssignableFrom(t2)) 247if (t2.IsAssignableFrom(t1))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (4)
172if (t.IsAssignableFrom(realCachedType)) 583if (t.IsAssignableFrom(objectType)) 1095public override bool IsAssignableFrom(Type c) { return _baseReflectionType.IsAssignableFrom(c); } 1490if (filterType != null && !filterType.IsAssignableFrom(attr.GetType()))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\CategoryEditor.cs (1)
73if (!typeof(CategoryEditor).IsAssignableFrom(categoryEditorType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\newitemtypesattribute.cs (1)
94if (!typeof(NewItemFactory).IsAssignableFrom(value))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyValueEditor.cs (1)
74if (!typeof(PropertyValueEditor).IsAssignableFrom(propertyValueEditorType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Documents\ViewManagerAttribute.cs (1)
37if (!typeof(ViewManager).IsAssignableFrom(viewManagerType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\ArgumentToExpressionConverter.cs (1)
47if (valueExpressionModelItem != null && typeof(ActivityWithResult).IsAssignableFrom(valueExpressionModelItem.ItemType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\ArgumentToExpressionModelItemConverter.cs (1)
56if (valueExpressionModelItem != null && typeof(Activity).IsAssignableFrom(valueExpressionModelItem.ItemType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\ModelPropertyEntryToModelItemConverter.cs (2)
50values.FirstOrDefault<object>(p => p != null && typeof(CategoryEntry).IsAssignableFrom(p.GetType())); 53values.FirstOrDefault<object>(p => p != null && typeof(FrameworkElement).IsAssignableFrom(p.GetType()));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\ModelPropertyEntryToOwnerActivityConverter.cs (2)
44if (typeof(Activity).IsAssignableFrom(itemType) || typeof(WorkflowService).IsAssignableFrom(itemType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (2)
282if (typeof(Activity).IsAssignableFrom(currentElement.GetType())) 690if (disallowedType.IsAssignableFrom(type))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Debugger\AllowBreakpointAttribute.cs (1)
20return typeof(Activity).IsAssignableFrom(breakpointCandidateType) || WorkflowViewService.GetAttribute<AllowBreakpointAttribute>(breakpointCandidateType) != null;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (1)
752if (AllowBreakpointAttribute.IsBreakpointAllowed(key.ItemType) && !typeof(IValueSerializableExpression).IsAssignableFrom(key.ItemType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (1)
408else if (!typeof(PropertyValueEditor).IsAssignableFrom(editorType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
252if (allowedItemType.IsAssignableFrom(draggedType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Expressions\ExpressionMorphHelperAttribute.cs (1)
19if (typeof(ExpressionMorphHelper).IsAssignableFrom(expressionMorphHelperType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FeatureManager.cs (1)
32if (typeof(Feature).IsAssignableFrom(featureAttribute.Type))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
43if (!typeof(Activity).IsAssignableFrom(activityType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\AttachedPropertiesService.cs (2)
38where property.OwnerType.IsAssignableFrom(modelItemType) select property; 43where property.OwnerType.IsAssignableFrom(modelItemType.GetGenericTypeDefinition())
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (7)
50while (item != null && !parentType.IsAssignableFrom(item.ItemType)) 54if (null != item && parentType.IsAssignableFrom(item.ItemType)) 112if (typeof(ModelItem).IsAssignableFrom(oldKey.GetType()) && typeof(ModelItem).IsAssignableFrom(newKey.GetType())) 119if (typeof(ModelItem).IsAssignableFrom(oldKey.GetType())) 127if (typeof(ModelItem).IsAssignableFrom(newKey.GetType())) 522return typeof(T).IsAssignableFrom(item.ItemType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (8)
225return includeOtherObjects || (typeof(WorkflowViewElement).IsAssignableFrom(viewService.GetDesignerType(type))); 229return !(excludeExpression && modelItem != null && typeof(ITextExpression).IsAssignableFrom(modelItem.ItemType)); 608if (typeof(DynamicActivityProperty).IsAssignableFrom(modelItem.ItemType)) 616else if (typeof(Variable).IsAssignableFrom(modelItem.ItemType)) 703return !typeof(WorkflowService).IsAssignableFrom(item.ItemType) 704&& !typeof(ActivityBuilder).IsAssignableFrom(item.ItemType); 769if (typeof(ITextExpression).IsAssignableFrom(itemToFocus.ItemType)) 775return typeof(WorkflowViewElement).IsAssignableFrom(designerType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelServiceImpl.cs (1)
57return type.IsAssignableFrom(modelItem.ItemType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (6)
176if (typeof(IList).IsAssignableFrom(type)) 186if (typeof(IDictionary).IsAssignableFrom(type)) 403|| (!typeof(WorkflowViewElement).IsAssignableFrom(viewService.GetDesignerType(currentModelItem.ItemType))) 443if (typeof(Type).IsAssignableFrom(currentModelItem.ItemType)) 497if (typeof(Type).IsAssignableFrom(property.PropertyType) || property.PropertyType.IsValueType) 877if (typeof(Type).IsAssignableFrom(currentItem.ItemType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\XamlUtilities.cs (1)
46if (type != null && !type.IsPublic && typeof(TypeConverter).IsAssignableFrom(type))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\TypeUtilities.cs (2)
62if (!constraint.IsAssignableFrom(candidate)) 82return parentObjectType.IsAssignableFrom(childObjectType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (12)
194if (null == current || !typeof(DesignTimeArgument).IsAssignableFrom(current.ItemType)) 421if (!typeof(DesignTimeArgument.DefaultValueEditor).IsAssignableFrom(editorType)) 996if (inArgumentTypeReference.IsAssignableFrom(argumentType) && argumentType.IsGenericType) 1000else if (outArgumentTypeReference.IsAssignableFrom(argumentType) && argumentType.IsGenericType) 1004else if (inOutArgumentTypeReference.IsAssignableFrom(argumentType) && argumentType.IsGenericType) 1065else if (null != value && !this.GetArgumentType().IsAssignableFrom(value.GetType())) 1144if (typeof(RequiredArgumentAttribute).IsAssignableFrom(item.ItemType)) 1173foreach (ModelItem toRemove in attributes.Where<ModelItem>(p => typeof(RequiredArgumentAttribute).IsAssignableFrom(p.ItemType))) 1198return this.GetArgumentDirection() != PropertyKind.Property || !type.IsGenericType || !typeof(Argument).IsAssignableFrom(type); 1219if (typeof(Handle).IsAssignableFrom(type)) 1260return (expressionEditorType != currentType && referenceType.IsAssignableFrom(currentType)); 1327if (null != value && !this.GetArgumentType().IsAssignableFrom(value.GetType()))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
1217typeof(ActivityBuilder).IsAssignableFrom(this.ActivitySchema.ItemType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (3)
453return (typeof(WorkflowViewElement).IsAssignableFrom(viewService.GetDesignerType(current.ItemType))); 544if (typeof(ActivityBuilder).IsAssignableFrom(modelItem.ItemType)) 893if (null != this.ActivitySchema && typeof(ActivityBuilder).IsAssignableFrom(this.ActivitySchema.ItemType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
643if (!typeof(ExpressionActivityEditor).IsAssignableFrom(expressionEditorType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ModelPropertyPathExpanderConverter.cs (1)
32while (convertedValue != null && !typeof(Activity).IsAssignableFrom(convertedValue.ItemType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (3)
239if (typeof(ModelItem).IsAssignableFrom(value.GetType())) 243else if (typeof(ModelProperty).IsAssignableFrom(value.GetType())) 247else if (typeof(KeyValuePair<ModelItem, ModelItem>).IsAssignableFrom(value.GetType()))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (12)
275if (null == current || !typeof(DesignTimeVariable).IsAssignableFrom(current.ItemType)) 517if (!typeof(ExpressionValueEditor).IsAssignableFrom(editorType)) 767if (!((CodeActivityType.IsAssignableFrom(elementType)) || (GenericAsyncCodeActivityType.IsAssignableFrom(elementType)) || 768(AsyncCodeActivityType.IsAssignableFrom(elementType)) || (GenericAsyncCodeActivityType.IsAssignableFrom(elementType)))) 832.Where<ModelProperty>(p => (typeof(DelegateArgument).IsAssignableFrom(p.PropertyType) && null != p.Value)) 903!typeof(Variable).IsAssignableFrom(variableContainer.ItemType.GetGenericArguments()[0])) 919!typeof(Variable).IsAssignableFrom(variableContainer.ItemType.GetGenericArguments()[0])) 1329if (typeof(Handle).IsAssignableFrom(type)) 1350return (expressionEditorType != currentType && referenceType.IsAssignableFrom(currentType)); 1466if (null != designTimeVariable && typeof(DesignTimeVariable).IsAssignableFrom(designTimeVariable.ItemType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ViewUtilities.cs (3)
27if (typeof(WorkflowViewElement).IsAssignableFrom(parentDesignerType)) 71return typeof(WorkflowViewElement).IsAssignableFrom(viewType) && (!allowDrillIn || options == null || options.AllowDrillIn); 165return parentType.IsAssignableFrom(parentDesignerType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (4)
118if (!typeof(IValueSerializableExpression).IsAssignableFrom(type)) 172if (designerType != null && typeof(WorkflowViewElement).IsAssignableFrom(designerType)) 226shouldAppearOnBreadCrumb = (typeof(WorkflowViewElement).IsAssignableFrom(designerType) && 233shouldAppearOnBreadCrumb = typeof(WorkflowViewElement).IsAssignableFrom(designerType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (4)
103&& typeof(Activity).IsAssignableFrom(this.AllowedItemType); 253Fx.Assert(typeof(Sequence).IsAssignableFrom(this.Item.ItemType), 738(itemsToPaste[0] is Type && this.AllowedItemType.IsAssignableFrom((Type)itemsToPaste[0])) || 739this.AllowedItemType.IsAssignableFrom(itemsToPaste[0].GetType()));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (3)
702if (this.AllowedItemType.IsAssignableFrom(modelItem.ItemType)) 707else if (droppedObject is Type && this.AllowedItemType.IsAssignableFrom((Type)droppedObject)) 713if (this.AllowedItemType.IsAssignableFrom(droppedObject.GetType()))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ActivityBuilderHelper.cs (3)
18return modelItem.ItemType.IsAssignableFrom(typeof(ActivityBuilder)); 31if (!astAsModelItem.ItemType.IsAssignableFrom(typeof(ActivityBuilder))) 67if (propertyType != null && typeof(Argument).IsAssignableFrom(propertyType))
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
385!SecurityType.IsAssignableFrom(type));
fx\src\data\System\Data\Common\DataStorage.cs (9)
264if (typeof(INullable).IsAssignableFrom(dataType)) { // Udt, OracleTypes 450Debug.Assert(nullable == typeof(System.Data.SqlTypes.INullable).IsAssignableFrom(dataType), "INullable"); 451Debug.Assert(changeTracking == typeof(System.ComponentModel.IChangeTracking).IsAssignableFrom(dataType), "IChangeTracking"); 452Debug.Assert(revertibleChangeTracking == typeof(System.ComponentModel.IRevertibleChangeTracking).IsAssignableFrom(dataType), "IRevertibleChangeTracking"); 453Debug.Assert(xmlSerializable == typeof(System.Xml.Serialization.IXmlSerializable).IsAssignableFrom(dataType), "IXmlSerializable"); 460typeof(System.Data.SqlTypes.INullable).IsAssignableFrom(dataType), 461typeof(System.ComponentModel.IChangeTracking).IsAssignableFrom(dataType), 462typeof(System.ComponentModel.IRevertibleChangeTracking).IsAssignableFrom(dataType), 463typeof(System.Xml.Serialization.IXmlSerializable).IsAssignableFrom(dataType));
fx\src\data\System\Data\Common\ObjectStorage.cs (4)
30: base(column, type, defaultValue, DBNull.Value, typeof(ICloneable).IsAssignableFrom(type), GetStorageType(type)) { 31implementsIXmlSerializable = typeof(IXmlSerializable).IsAssignableFrom(type); 465if (typeof(System.Dynamic.IDynamicMetaObjectProvider).IsAssignableFrom(type) && 466!typeof(System.Xml.Serialization.IXmlSerializable).IsAssignableFrom(type))
fx\src\data\System\Data\Common\SQLTypes\SqlUDTStorage.cs (3)
37: base(column, type, nullValue, nullValue, typeof(ICloneable).IsAssignableFrom(type), GetStorageType(type)) { 38implementsIXmlSerializable = typeof(IXmlSerializable).IsAssignableFrom(type); 39implementsIComparable = typeof(IComparable).IsAssignableFrom(type);
fx\src\data\System\Data\DataColumnPropertyDescriptor.cs (1)
25if (typeof(System.Collections.IList).IsAssignableFrom(this.PropertyType)) {
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (6)
504if (typeof(IDataReader).IsAssignableFrom(fieldType)) { 511else if (typeof(System.Data.SqlTypes.SqlXml).IsAssignableFrom(fieldType)) { 517else if (typeof(System.Xml.XmlReader).IsAssignableFrom(fieldType)) { 690if (typeof(IDataReader).IsAssignableFrom(fieldType)) { 697else if (typeof(System.Data.SqlTypes.SqlXml).IsAssignableFrom(fieldType)) { 703else if (typeof(System.Xml.XmlReader).IsAssignableFrom(fieldType)) {
fx\src\data\System\Data\Sql\sqlnorm.cs (2)
104if (typeof(System.Data.SqlTypes.INullable).IsAssignableFrom(t)) { 144if (!this.m_isTopLevelUdt && typeof(System.Data.SqlTypes.INullable).IsAssignableFrom(t)) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
2634if (_typeofINullable.IsAssignableFrom(typeofT)) {
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
119if (_typeofINullable.IsAssignableFrom(typeof(T))) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (3)
353if (typeof(Stream).IsAssignableFrom(dataType)) { 357if (typeof(TextReader).IsAssignableFrom(dataType)) { 361if (typeof(System.Xml.XmlReader).IsAssignableFrom(dataType)) {
fx\src\data\System\Data\SqlClient\SqlParameter.cs (1)
920else if (typeof(XmlReader).IsAssignableFrom(currentType)) {
fx\src\data\System\Data\xmlsaver.cs (2)
2236if (!col.IsCustomType || !col.IsValueCustomTypeInstance(columnValue) ||(typeof(IXmlSerializable).IsAssignableFrom(columnValue.GetType()))) { 2607if (!col.IsCustomType || !col.IsValueCustomTypeInstance(value) ||(typeof(IXmlSerializable).IsAssignableFrom(value.GetType()))) {
System.Data.DataSetExtensions (4)
System\Data\DataSetUtil.cs (1)
132!SecurityType.IsAssignableFrom(type));
System\Data\EnumerableRowCollection.cs (1)
168if ((null == _table) || !typeof(DataRow).IsAssignableFrom(typeof(TRow)))
System\Data\EnumerableRowCollectionExtensions.cs (2)
205typeof(TResult).IsAssignableFrom(source.ElementType) && typeof(DataRow).IsAssignableFrom(typeof(TResult)),
System.Data.Entity (55)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (2)
1822if (pi.CanRead && typeof(TRequired).IsAssignableFrom(pi.PropertyType)) 1885if (typeof(DbExpression).IsAssignableFrom(typeof(TArgument)))
System\Data\Common\EntityUtil.cs (5)
131return typeof(ICollection<>).IsAssignableFrom(type.GetGenericTypeDefinition()) || 151(collectionType.IsGenericType && typeof(ICollection<>).IsAssignableFrom(collectionType.GetGenericTypeDefinition())) ? 218if (requestedType.IsAssignableFrom(hashSetOfT)) 224if (requestedType.IsAssignableFrom(listOfT)) 1968!SecurityType.IsAssignableFrom(type));
System\Data\Common\Internal\Materialization\CoordinatorFactory.cs (1)
209if (typeof(IEntityWrapper).IsAssignableFrom(element.Type))
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (4)
400&& typeof(DbDataReader).IsAssignableFrom(test.Object.Type) 403if (ifFalse != null && (ifFalse.Object != null && typeof(DbDataReader).IsAssignableFrom(ifFalse.Object.Type) || IsUserExpressionMethod(ifFalse.Method))) 426if (typeof(DbDataReader).IsAssignableFrom(m.Type)) 514if (m.Object != null && typeof(DbDataReader).IsAssignableFrom(m.Object.Type))
System\Data\Common\Internal\Materialization\Shaper.cs (1)
886if (!typeof(T).IsAssignableFrom(resultType))
System\Data\Common\Internal\Materialization\Translator.cs (8)
92if (!typeof(IEntityWrapper).IsAssignableFrom(ReturnedExpression.Type)) 713if (input.Type != type && !typeof(IEntityWrapper).IsAssignableFrom(input.Type)) 715if (type.IsAssignableFrom(input.Type)) 760bool isIEntityWithKey = typeof(IEntityWithKey).IsAssignableFrom(actualType); 761bool isIEntityWithRelationships = typeof(IEntityWithRelationships).IsAssignableFrom(actualType); 762bool isIEntityWithChangeTracker = typeof(IEntityWithChangeTracker).IsAssignableFrom(actualType); 1255if (typeof(IEntityWithKey).IsAssignableFrom(actualType) && MergeOption.AppendOnly != _mergeOption) 1908if (!arg.RequestedType.IsAssignableFrom(result.Type))
System\Data\Metadata\Edm\Facet.cs (1)
95|| result.FacetType.ClrType.IsAssignableFrom(valueType),
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (2)
136else if (typeof(System.Data.Spatial.DbGeography).IsAssignableFrom(clrType)) 140else if (typeof(System.Data.Spatial.DbGeometry).IsAssignableFrom(clrType))
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (1)
114if (typeof(System.Collections.IEnumerable).IsAssignableFrom(clrType))
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (1)
726return !clrProperty.PropertyType.IsValueType && !clrProperty.PropertyType.IsAssignableFrom(typeof(string)) && clrProperty.Name == cspaceMember.Name;
System\Data\Objects\CompiledQuery.cs (1)
597!resultType.IsAssignableFrom(typeof(ObjectQuery<>).MakeGenericType(elementType)));
System\Data\Objects\DataClasses\RelationshipManager.cs (3)
496if (!(sourceType.IsAssignableFrom(wrappedOwner.IdentityType))) 784if (referenceType != null && referenceType.ElementType.ClrType.IsAssignableFrom(entityClrType)) 791if (referenceType != null && referenceType.ElementType.ClrType.IsAssignableFrom(entityClrType))
System\Data\Objects\DataRecordObjectView.cs (5)
42if (!typeof(IDataRecord).IsAssignableFrom(propertyComponentType)) 74if (typeof(IList).IsAssignableFrom(type) || 75typeof(ITypedList).IsAssignableFrom(type) || 76typeof(IListSource).IsAssignableFrom(type)) 117if (typeof(Array).IsAssignableFrom(type))
System\Data\Objects\ELinq\Funcletizer.cs (1)
474&& typeof(IQueryable).IsAssignableFrom(ue.Operand.Type))
System\Data\Objects\ELinq\MethodCallTranslator.cs (1)
709if (expression.Type.IsAssignableFrom(operand.Type))
System\Data\Objects\ELinq\ObjectQueryProvider.cs (2)
66if (!typeof(IQueryable<S>).IsAssignableFrom(expression.Type)) 103if (!typeof(IQueryable).IsAssignableFrom(expression.Type))
System\Data\Objects\ELinq\TypeSystem.cs (1)
163if (ienum.IsAssignableFrom(seqType))
System\Data\Objects\FieldDescriptor.cs (2)
133if (!_itemType.IsAssignableFrom(item.GetType())) 160if (!_itemType.IsAssignableFrom(item.GetType()))
System\Data\Objects\Internal\EntityProxyFactory.cs (2)
575typeof(IEntityWithRelationships).IsAssignableFrom(ospaceEntityType.ClrType) || 1565_baseImplementsISerializable = _baseClrType.IsSerializable && typeof(ISerializable).IsAssignableFrom(_baseClrType);
System\Data\Objects\Internal\EntityWrapperFactory.cs (6)
85bool isIEntityWithRelationships = typeof(IEntityWithRelationships).IsAssignableFrom(entityType); 86bool isIEntityWithChangeTracker = typeof(IEntityWithChangeTracker).IsAssignableFrom(entityType); 87bool isIEntityWithKey = typeof(IEntityWithKey).IsAssignableFrom(entityType); 144bool isIEntityWithRelationships = typeof(IEntityWithRelationships).IsAssignableFrom(entityType); 145bool isIEntityWithChangeTracker = typeof(IEntityWithChangeTracker).IsAssignableFrom(entityType); 146bool isIEntityWithKey = typeof(IEntityWithKey).IsAssignableFrom(entityType);
System\Data\Objects\ObjectContext.cs (1)
854!bodyAsMember.Member.DeclaringType.IsAssignableFrom(typeof(TEntity)) ||
System\Data\Objects\ObjectViewFactory.cs (3)
112if (!typeof(TElement).IsAssignableFrom(clrElementType)) 195if (!typeof(TElement).IsAssignableFrom(clrElementType)) 334if (typeof(IDataRecord).IsAssignableFrom(elementType) || elementType == typeof(object))
System\Data\Objects\ObjectViewQueryResultData.cs (1)
224if (e.Element.GetType().IsAssignableFrom(typeof(TElement)) &&
System.Data.Entity.Design (2)
System\Data\Entity\Design\Common\MetadataUtil.cs (1)
253!SecurityType.IsAssignableFrom(type));
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
165if ( pair.First.IsAssignableFrom( typeOfElement ) )
System.Data.Linq (93)
ChangeConflicts.cs (1)
318if (!member.DeclaringType.Type.IsAssignableFrom(this.database.GetType())) {
ChangeTracker.cs (2)
450if (!mm.IsAssociation && (this.Type.Type == instanceType || mm.DeclaringType.Type.IsAssignableFrom(instanceType))) { 530if (this.Type.Type != instanceType && !mm.DeclaringType.Type.IsAssignableFrom(instanceType)) {
CompiledQuery.cs (1)
243return typeof(ITable).IsAssignableFrom(query.Body.Type);
DataContext.cs (4)
183if (!typeof(IProvider).IsAssignableFrom(providerType)) { 801if (!typeof(IQueryable<TResult>).IsAssignableFrom(methodInfo.ReturnType)) { 1152if (!qType.IsAssignableFrom(expression.Type)) { 1164if (!typeof(IQueryable<TResult>).IsAssignableFrom(expression.Type)) {
DataQuery.cs (2)
39if (!qType.IsAssignableFrom(expression.Type)) 48if (!typeof(IQueryable<S>).IsAssignableFrom(expression.Type))
DataServices.cs (3)
353if (typeof(T).IsAssignableFrom(this.member.LoadMethod.ReturnType)) { 562if (!type.Type.IsAssignableFrom(memex.Member.ReflectedType) && !memex.Member.ReflectedType.IsAssignableFrom(type.Type)) {
DataShape.cs (4)
222if (edgeTargets.Where(et=>et.IsAssignableFrom(edge.DeclaringType) || edge.DeclaringType.IsAssignableFrom(et)).Any()) { 253if (!typeof(IEnumerable).IsAssignableFrom(memberType)) { 259if (!typeof(IEnumerable).IsAssignableFrom(subquery.Body.Type)) {
DbConvert.cs (4)
31if (toType.IsAssignableFrom(fromType)) 149else if (toType == typeof(string) && !(typeof(IConvertible).IsAssignableFrom(fromType))) { 167else if (!(typeof(IConvertible).IsAssignableFrom(toType)) && 181&& typeof(IEnumerable<>).MakeGenericType(toType.GetGenericArguments()[0]).IsAssignableFrom(fromType)
Mapping\Accessors.cs (1)
23if (!fi.ReflectedType.IsAssignableFrom(objectType))
Mapping\AttributedMetaModel.cs (5)
411if (!type.IsAssignableFrom(attr.Type)) { 1256typeof(EntitySet<>).IsAssignableFrom(gtype) || 1257typeof(EntityRef<>).IsAssignableFrom(gtype) || 1288else if (typeof(EntityRef<>).IsAssignableFrom(gtype)) { 1294else if (typeof(EntitySet<>).IsAssignableFrom(gtype)) {
Mapping\MappedMetaModel.cs (4)
1161typeof(EntitySet<>).IsAssignableFrom(gtype) || 1162typeof(EntityRef<>).IsAssignableFrom(gtype) || 1193else if (typeof(EntityRef<>).IsAssignableFrom(gtype)) { 1199else if (typeof(EntitySet<>).IsAssignableFrom(gtype)) {
SqlClient\Common\SqlFactory.cs (1)
289if (typeof(Type).IsAssignableFrom(clrType) && value != null) {
SqlClient\Common\SqlNode.cs (17)
796if (this.expression != null && !this.expression.ClrType.IsAssignableFrom(value.ClrType)) 1131if (this.valueExpression != null && !this.valueExpression.ClrType.IsAssignableFrom(value.ClrType)) 1171if (this.@else != null && !this.@else.ClrType.IsAssignableFrom(value.ClrType)) 1410if (typeof(Type).IsAssignableFrom(clrType)) 1462if (!this.member.ReflectedType.IsAssignableFrom(value.ClrType) && 1463!value.ClrType.IsAssignableFrom(this.member.ReflectedType)) 1480if (typeof(Type).IsAssignableFrom(clrType)) 1525if (!this.ClrType.IsAssignableFrom(value.ClrType)) 1641if (!this.key.ClrType.IsAssignableFrom(value.ClrType) 1642&& !value.ClrType.IsAssignableFrom(this.key.ClrType)) 1752if (value != null && !this.method.DeclaringType.IsAssignableFrom(value.ClrType)) 2018if (!this.table.RowType.Type.IsAssignableFrom(value.ClrType)) 2081if (this.rightValue != null && !value.ClrType.IsAssignableFrom(this.rightValue.ClrType)) 2092if (this.leftValue != null && !this.leftValue.ClrType.IsAssignableFrom(value.ClrType)) 2217if (!this.ClrType.IsAssignableFrom(value.ClrType) 2218&& !value.ClrType.IsAssignableFrom(this.ClrType)) 2259if (!TypeSystem.GetNonNullableType(this.ClrType).IsAssignableFrom(TypeSystem.GetNonNullableType(value.ClrType)))
SqlClient\Common\TypeSystem.cs (2)
30if (ienum.IsAssignableFrom(seqType)) { 180if (!parameterType.IsAssignableFrom(argType))
SqlClient\Query\Funcletizer.cs (3)
119if (typeof(ITable).IsAssignableFrom(expression.Type) || 120typeof(DataContext).IsAssignableFrom(expression.Type)) { 128this.isRemote |= (m.Expression != null && typeof(ITable).IsAssignableFrom(m.Expression.Type));
SqlClient\Query\MethodCallConverter.cs (3)
342else if (treatType.IsAssignableFrom(originalType)) { 346else if (!treatType.IsAssignableFrom(originalType) && !originalType.IsAssignableFrom(treatType)) {
SqlClient\Query\QueryConverter.cs (9)
100if (typeof(ITable).IsAssignableFrom(node.Type)) { 933if (typeof(int).IsAssignableFrom(constTakeCount.Value.GetType()) && ((int)constTakeCount.Value) < 0) { 945if (typeof(int).IsAssignableFrom(constSkipCount.Value.GetType()) && ((int)constSkipCount.Value) < 0) { 1047if (typeof(int).IsAssignableFrom(constSkipCount.Value.GetType()) && ((int)constSkipCount.Value) < 0) { 1201typeof(IMultipleResults).IsAssignableFrom(returnType) 1890if (value != null && typeof(Type).IsAssignableFrom(value.GetType())) { 1901else if (typeof(DataContext).IsAssignableFrom(mc.Method.DeclaringType)) { 1930&& typeof(IList).IsAssignableFrom(mc.Method.DeclaringType) 1933&& TypeSystem.GetElementType(mc.Method.DeclaringType).IsAssignableFrom(mc.Arguments[0].Type)
SqlClient\Query\SqlBinder.cs (8)
315if (typeof(Type).IsAssignableFrom(bo.Left.ClrType)) { 371if (!typeof(Type).IsAssignableFrom(typeExpression.ClrType)) { 490if (!type.IsAssignableFrom(n.ClrType)) { 515if (!type.IsAssignableFrom(expr.ClrType) && !expr.ClrType.IsAssignableFrom(type)) { 769if (m.Member.DeclaringType.IsAssignableFrom(sn.ClrType)) { 1242if (!sc.ClrType.IsAssignableFrom(when.Value.ClrType)) { 1302if (!cc.ClrType.IsAssignableFrom(fetchedValue.ClrType)) {
SqlClient\Query\SqlRetyper.cs (2)
43if (to.IsAssignableFrom(from)) 315if (!value.ClrType.IsAssignableFrom(expression.ClrType)) {
SqlClient\Reader\ObjectReaderCompiler.cs (13)
1172System.Diagnostics.Debug.Assert(argType.IsAssignableFrom(eType)); 1234System.Diagnostics.Debug.Assert(argType.IsAssignableFrom(eType)); 1296if (!argType.IsAssignableFrom(eType)) { 1577bool actualIsSequence = seqType.IsAssignableFrom(actualType); 1637if (actualType.IsAssignableFrom(genExpectedTypeArgs[0])) { 1649else if (seqType.IsAssignableFrom(actualType)) { 1665&& typeof(IEnumerable).IsAssignableFrom(actualType)) { 1732else if (typeof(IEnumerable).IsAssignableFrom(expectedType) && 1734expectedType.IsAssignableFrom(typeof(List<>).MakeGenericType(elemType)) 1744!actualType.IsArray && seqType.IsAssignableFrom(actualType) && 1745expectedType.GetElementType().IsAssignableFrom(elemType) 1754typeof(ICollection<>).MakeGenericType(elemType).IsAssignableFrom(expectedType) && 1756seqType.IsAssignableFrom(actualType)
SqlClient\SqlBuilder.cs (1)
314return type.IsGenericType && typeof(Nullable<>).IsAssignableFrom(type.GetGenericTypeDefinition());
SqlClient\SqlProvider.cs (3)
1109if (typeof(IQueryable).IsAssignableFrom(queryInfo.ResultType)) { 1146if (mc != null && typeof(DataContext).IsAssignableFrom(mc.Method.DeclaringType)) { 1340bool isSequence = typeof(IEnumerable).IsAssignableFrom(query.Type);
System.Data.Services (23)
parent\Client\System\Data\Services\Client\Common.cs (1)
58if (unsupportedTypes.Any(t => t.IsAssignableFrom(type)))
System\Data\Services\DataService.cs (2)
1924if (!dataContextType.IsAssignableFrom(dataSourceInstance.GetType())) 1989if (typeof(ObjectContext).IsAssignableFrom(dataContextType))
System\Data\Services\DataServiceConfiguration.cs (3)
913else if (!expectedReturnType.IsAssignableFrom(returnType)) 916if (!(typeof(Expression<>).MakeGenericType(nullableLambdaType).IsAssignableFrom(returnType))) 1055if (!elementParameterType.IsAssignableFrom(container.ResourceType.InstanceType))
System\Data\Services\Internal\ProjectedWrapper.cs (2)
278Debug.Assert(typeof(ProjectedWrapper).IsAssignableFrom(projectedWrapperType), "Can't bind to type which is not a projected wrapper."); 292typeof(ProjectedWrapper).IsAssignableFrom(projectedWrapperType),
System\Data\Services\Parsing\RequestQueryParser.cs (3)
642return target.IsAssignableFrom(source); 1543else if (left.Type.IsAssignableFrom(right.Type)) 1547else if (right.Type.IsAssignableFrom(left.Type))
System\Data\Services\Providers\BasicExpandProvider.cs (2)
1253Debug.Assert(resourceType.InstanceType.IsAssignableFrom(source.Type), "Trying to access a property on expression of a wrong type."); 1294Debug.Assert(property.Type.IsAssignableFrom(expression.Type), "The returned expression is not of the type of the property being accessed.");
System\Data\Services\Providers\ObjectContextServiceProvider.cs (2)
255if (set.Value.ResourceType.InstanceType.IsAssignableFrom(source.ElementType)) 263bool useBasicExpandProvider = !(typeof(ObjectQuery).IsAssignableFrom(source.GetType()));
System\Data\Services\Providers\ReflectionServiceProvider.cs (6)
107if (typeof(IComparable).IsAssignableFrom(type)) 234return typeof(IUpdatable).IsAssignableFrom(this.Type); 267if (entitySetType.IsAssignableFrom(elementType)) 271else if (elementType.IsAssignableFrom(entitySetType)) 816if (entitySetInfo.ResourceType.InstanceType.IsAssignableFrom(type)) 891if (rootTypes[i].InstanceType.IsAssignableFrom(type))
System\Data\Services\RequestUriProcessor.cs (1)
1031predicate.Parameters[0].Type.IsAssignableFrom(typeof(TSource)))
System\Data\Services\Serializers\JsonSerializer.cs (1)
764(resourceType.InstanceType.IsAssignableFrom(customObject.GetType())),
System.Data.Services.Client (29)
System\Data\Services\Client\ALinq\ExpressionNormalizer.cs (1)
170if ((visited.NodeType == ExpressionType.Convert || visited.NodeType == ExpressionType.TypeAs) && visited.Type.IsAssignableFrom(visited.Operand.Type))
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (2)
158if (typeof(List<>).MakeGenericType(elementType).IsAssignableFrom(e.Type) || 159(dscType != null && dscType.IsAssignableFrom(e.Type)))
System\Data\Services\Client\ALinq\ResourceBinder.cs (1)
1356return expression.Type.IsAssignableFrom(expression.Operand.Type);
System\Data\Services\Client\ALinq\TypeSystem.cs (1)
207if (ienum.IsAssignableFrom(seqType))
System\Data\Services\Client\AtomMaterializer.cs (4)
647else if (!resultType.IsAssignableFrom(entry.ActualType.ElementType)) 853if (!requiredType.IsAssignableFrom(entry.ResolvedObject.GetType())) 877if (!requiredType.IsAssignableFrom(entry.ResolvedObject.GetType())) 1812if (!collectionType.ElementType.IsAssignableFrom(item.GetType()))
System\Data\Services\Client\Binding\BindingEntityInfo.cs (2)
150if (dataServiceCollection != null && dataServiceCollection.IsAssignableFrom(type)) 343if (typeof(INotifyPropertyChanged).IsAssignableFrom(property.PropertyType))
System\Data\Services\Client\Binding\BindingGraph.cs (1)
99if (!typeof(INotifyPropertyChanged).IsAssignableFrom(entityType))
System\Data\Services\Client\Binding\DataServiceCollectionOfT.cs (1)
251Debug.Assert(typeof(System.ComponentModel.INotifyPropertyChanged).IsAssignableFrom(typeof(T)), "The entity type must be trackable (by implementing INotifyPropertyChanged interface)");
System\Data\Services\Client\ClientType.cs (10)
197if (!property.DeclaringType.IsAssignableFrom(this.properties[shadow].DeclaringType)) 231this.properties[i].DeclaringType.IsAssignableFrom(keyPropertyDeclaredType)) 697if ((null != type) && type.IsVisible && (wireClassName == type.Name) && userType.IsAssignableFrom(type)) 976Debug.Assert(this.PropertyType.IsAssignableFrom(instance.GetType()), "unexpected collection instance"); 977Debug.Assert((null == value) || this.CollectionType.IsAssignableFrom(value.GetType()), "unexpected collection value to add"); 1021Debug.Assert(this.PropertyType.IsAssignableFrom(instance.GetType()), "unexpected dictionary instance"); 1022Debug.Assert((null == value) || this.CollectionType.IsAssignableFrom(value.GetType()), "unexpected dictionary value to set"); 1030Debug.Assert(this.PropertyType.IsAssignableFrom(instance.GetType()), "unexpected collection instance"); 1031Debug.Assert((null == value) || this.CollectionType.IsAssignableFrom(value.GetType()), "unexpected collection value to add"); 1041Debug.Assert((null == value) || this.PropertyType.IsAssignableFrom(value.GetType()), "unexpected property value to set");
System\Data\Services\Client\Common.cs (1)
58if (unsupportedTypes.Any(t => t.IsAssignableFrom(type)))
System\Data\Services\Client\DataServiceContext.cs (2)
1441if (!propertyElementType.ElementType.IsAssignableFrom(childType.ElementType)) 2181if (checkAssignable && (null != payloadType) && (!userType.IsAssignableFrom(payloadType)))
System\Data\Services\Client\MaterializeFromAtom.cs (1)
242if (!expectingSingleValue && typeof(IEnumerable).IsAssignableFrom(elementType))
System\Data\Services\Client\ProjectionPlanCompiler.cs (1)
908typeof(DataServiceContext).IsAssignableFrom(result.Arguments[0].Type) &&
System\Data\Services\Client\Util.cs (1)
469if (typeof(DataServiceQueryContinuation).IsAssignableFrom(property.PropertyType))
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
214if (pair.First.IsAssignableFrom(typeOfElement))
System.Data.SqlXml (15)
System\Xml\Xsl\IlGen\GenerateHelper.cs (2)
898Debug.Assert(clrTypeSrc.IsAssignableFrom(clrTypeDst) || clrTypeDst.IsAssignableFrom(clrTypeSrc),
System\Xml\Xsl\IlGen\IteratorDescriptor.cs (2)
91typeof(IList<>).MakeGenericType(itemStorageType).IsAssignableFrom(loc.LocalType), 121typeof(IList<>).MakeGenericType(itemStorageType).IsAssignableFrom(methGlobal.ReturnType),
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (1)
3424if (xmlTypeFormalArg.TypeCode == XmlTypeCode.Item || !clrTypeFormalArg.IsAssignableFrom(clrTypeActualArg)) {
System\Xml\Xsl\QIL\QilTypeChecker.cs (2)
904Check(clrTypeValue.IsAssignableFrom(clrType), node, "Literal value must be of type " + clrTypeValue.Name); 909Check(clrTypeClass.IsAssignableFrom(node.GetType()), node, "Node must be instance of " + clrTypeClass.Name);
System\Xml\Xsl\Runtime\XmlQueryContext.cs (1)
281if (xmlTypeFormalArg.TypeCode == XmlTypeCode.Item || !clrTypeFormalArg.IsAssignableFrom(objActualArgs[i].GetType()))
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (4)
466Debug.Assert(XmlILTypeHelper.GetStorageType(xmlType).IsAssignableFrom(value.GetType()), 468Debug.Assert(destinationType == XsltConvert.ObjectType || !destinationType.IsAssignableFrom(value.GetType()), 535Debug.Assert(destinationType.IsAssignableFrom(value.GetType()), "ChangeType from type " + value.GetType().Name + " to type " + destinationType.Name + " failed"); 645Debug.Assert(XmlILTypeHelper.GetStorageType(xmlType).IsAssignableFrom(value.GetType()), "Xml type " + xmlType + " is not represented in ILGen as " + value.GetType().Name);
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (3)
462typeof(XPathNavigator ).IsAssignableFrom(type) || 463typeof(IXPathNavigable).IsAssignableFrom(type) 467if (typeof(XPathNodeIterator).IsAssignableFrom(type)) {
System.Drawing (1)
commonui\System\Drawing\Design\ToolboxItem.cs (1)
374else if (typeof(IComponent).IsAssignableFrom(createType)) {
System.IdentityModel (9)
System\IdentityModel\Configuration\SecurityTokenServiceConfiguration.cs (2)
161if (!typeof(System.IdentityModel.SecurityTokenService).IsAssignableFrom(value)) 186if (!typeof(STS).IsAssignableFrom(stsType))
System\IdentityModel\Configuration\TypeResolveHelper.cs (1)
28if (!typeof(T).IsAssignableFrom(customType))
System\IdentityModel\Selectors\SecurityTokenRequirement.cs (1)
165if (dictionaryValue != null && !typeof(TValue).IsAssignableFrom(dictionaryValue.GetType()))
System\IdentityModel\Selectors\SecurityTokenSerializer.cs (1)
225if (tokenTypes[i].IsAssignableFrom(tokenType))
System\IdentityModel\Tokens\WSSecurityJan2004.cs (3)
373return ClauseType.IsAssignableFrom(clause.GetType()); 658if (typeof(SamlAssertionKeyIdentifierClause).IsAssignableFrom(clause.GetType())) 749return typeof(RelAssertionDirectKeyIdentifierClause).IsAssignableFrom(clause.GetType());
System\IdentityModel\Tokens\WSSecurityXXX2005.cs (1)
238return typeof(SamlAssertionDirectKeyIdentifierClause).IsAssignableFrom(clause.GetType());
System.Runtime.Remoting (12)
channels\http\httpremotinghandler.cs (1)
511if (typeof(MarshalByRefObject).IsAssignableFrom(type))
metadata\sudscommon.cs (1)
192else if (typeofISoapXsd.IsAssignableFrom(clrType))
metadata\wsdlwriter.cs (10)
265if (_name == null && s_marshalByRefType.IsAssignableFrom(type)) 301s_marshalByRefType.IsAssignableFrom(rsType.Type) || 302s_delegateType.IsAssignableFrom(rsType.Type); 1418(s_delegateType != null && s_delegateType.IsAssignableFrom(_type)));} 1985Util.Log("RealSchemaType.PrintMessageWsd suds realSchemaType 2 "+type.BaseType+" "+typeof(MulticastDelegate).IsAssignableFrom(type));; 2173else if (typeof(Delegate).IsAssignableFrom(type) || typeof(MulticastDelegate).IsAssignableFrom(type)) 2175else if (typeof(MarshalByRefObject).IsAssignableFrom(type)) 2177else if (typeof(ISerializable).IsAssignableFrom(type)) 2518if (!s_marshalByRefType.IsAssignableFrom(type))
System.Runtime.Serialization (30)
System\Runtime\Serialization\ClassDataContract.cs (6)
344if (!childType.IsEnum && !Globals.TypeOfIXmlSerializable.IsAssignableFrom(childType) 370if (Globals.TypeOfIXmlSerializable.IsAssignableFrom(type)) 389if (Globals.TypeOfISerializable.IsAssignableFrom(type)) 704this.isISerializable = (Globals.TypeOfISerializable.IsAssignableFrom(type)); 710if (baseType != null && !(baseType.IsSerializable && Globals.TypeOfISerializable.IsAssignableFrom(baseType))) 730hasExtensionData = (Globals.TypeOfIExtensibleDataObject.IsAssignableFrom(type));
System\Runtime\Serialization\CodeExporter.cs (3)
548if (Globals.TypeOfIXmlSerializable.IsAssignableFrom(type)) 852if (!Globals.TypeOfIExtensibleDataObject.IsAssignableFrom(actualType)) 854if (!Globals.TypeOfIPropertyChange.IsAssignableFrom(actualType))
System\Runtime\Serialization\CodeGenerator.cs (3)
1662else if (source.IsAssignableFrom(target)) 1671else if (target.IsAssignableFrom(source)) 1680else if (source.IsAssignableFrom(target))
System\Runtime\Serialization\CollectionDataContract.cs (3)
933if (Globals.TypeOfIXmlSerializable.IsAssignableFrom(type) || IsArraySegment(type)) 938if (!Globals.TypeOfIEnumerable.IsAssignableFrom(type)) 1208if (getEnumeratorMethod == null || !Globals.TypeOfIEnumerator.IsAssignableFrom(getEnumeratorMethod.ReturnType))
System\Runtime\Serialization\DataContract.cs (4)
585else if (Globals.TypeOfIXmlSerializable.IsAssignableFrom(type)) 1287Globals.TypeOfIXmlSerializable.IsAssignableFrom(type)) 1512else if (Globals.TypeOfIXmlSerializable.IsAssignableFrom(type)) 2105if (!Globals.TypeOfTypeEnumerable.IsAssignableFrom(method.ReturnType))
System\Runtime\Serialization\DataContractSet.cs (1)
506(Globals.TypeOfIXmlSerializable.IsAssignableFrom(type) && !type.IsGenericTypeDefinition) ||
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (2)
148if (Globals.TypeOfIDeserializationCallback.IsAssignableFrom(classContract.UnderlyingType)) 326return Globals.TypeOfIObjectReference.IsAssignableFrom(classContract.UnderlyingType);
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
290if ((contractType == typeof(XmlDataContract)) && !Globals.TypeOfIXmlSerializable.IsAssignableFrom(declaredType))
System\Runtime\Serialization\SchemaExporter.cs (2)
638if (!(Globals.TypeOfXmlQualifiedName.IsAssignableFrom(getMethod.ReturnType)) && !(Globals.TypeOfXmlSchemaType.IsAssignableFrom(getMethod.ReturnType)))
System\Runtime\Serialization\SchemaImporter.cs (2)
513if (Globals.TypeOfIXmlSerializable.IsAssignableFrom(referencedType)) 761&& Globals.TypeOfIXmlSerializable.IsAssignableFrom(referencedType))
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
158if (Globals.TypeOfIDeserializationCallback.IsAssignableFrom(classContract.UnderlyingType)) 319return Globals.TypeOfIObjectReference.IsAssignableFrom(classContract.UnderlyingType);
System\Runtime\Serialization\XPathQueryGenerator.cs (1)
71if (member.MemberInfo.Name == memberNode.Name && member.MemberInfo.DeclaringType.IsAssignableFrom(memberNode.DeclaringType))
System.ServiceModel (83)
System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (2)
69if (!delegatingHandlerType.IsAssignableFrom(handler) || handler.IsAbstract) 154if (!typeof(HttpMessageHandlerFactory).IsAssignableFrom(factoryType) || factoryType.IsAbstract)
System\ServiceModel\Channels\PeerMessageDispatcher.cs (1)
66if (typeof(IDuplexChannel).IsAssignableFrom(typeof(ChannelInterfaceType)))
System\ServiceModel\Channels\PeerSecurityManager.cs (1)
492Fx.Assert(typeof(PeerSecurityCredentialsManager.PeerClientSecurityTokenManager).IsAssignableFrom(tokenManager.GetType()), "");
System\ServiceModel\Channels\ServiceChannel.cs (3)
452if (t.IsAssignableFrom(typeof(IClientChannel))) 455if (t.IsAssignableFrom(typeof(IDuplexContextChannel))) 458if (t.IsAssignableFrom(typeof(IServiceChannel)))
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
389return toType.IsAssignableFrom(proxiedType) || serviceChannel.CanCastTo(toType);
System\ServiceModel\ClientBase.cs (2)
783if (typeof(CompletedAsyncResult).IsAssignableFrom(result.GetType())) 807if (typeof(CompletedAsyncResult).IsAssignableFrom(result.GetType()))
System\ServiceModel\Configuration\ClientCredentialsElement.cs (1)
121if (!typeof(ClientCredentials).IsAssignableFrom(credentialsType))
System\ServiceModel\Configuration\CommonEndpointBehaviorElement.cs (2)
24if (!typeof(System.ServiceModel.Description.IEndpointBehavior).IsAssignableFrom(element.BehaviorType)) 45if (!typeof(System.ServiceModel.Description.IEndpointBehavior).IsAssignableFrom(element.BehaviorType))
System\ServiceModel\Configuration\CommonServiceBehaviorElement.cs (2)
24if (!typeof(System.ServiceModel.Description.IServiceBehavior).IsAssignableFrom(element.BehaviorType)) 45if (!typeof(System.ServiceModel.Description.IServiceBehavior).IsAssignableFrom(element.BehaviorType))
System\ServiceModel\Configuration\CustomBindingCollectionElement.cs (1)
75isMatch = bindingElementExtension.BindingElementType.IsAssignableFrom(bindingElement.GetType());
System\ServiceModel\Configuration\CustomBindingElement.cs (2)
151if (exclusiveType.IsAssignableFrom(bindingElementType)) 155if (exclusiveType.IsAssignableFrom(existing.BindingElementType))
System\ServiceModel\Configuration\EndpointBehaviorElement.cs (2)
38if (!typeof(System.ServiceModel.Description.IEndpointBehavior).IsAssignableFrom(element.BehaviorType)) 63if (!typeof(System.ServiceModel.Description.IEndpointBehavior).IsAssignableFrom(element.BehaviorType))
System\ServiceModel\Configuration\IssuedTokenServiceElement.cs (2)
162if (!typeof(X509CertificateValidator).IsAssignableFrom(type)) 172if (!typeof(SamlSerializer).IsAssignableFrom(type))
System\ServiceModel\Configuration\SecureConversationServiceElement.cs (1)
58if (!typeof(SecurityStateEncoder).IsAssignableFrom(type))
System\ServiceModel\Configuration\ServiceAuthenticationElement.cs (1)
58if (!typeof(ServiceAuthenticationManager).IsAssignableFrom(type))
System\ServiceModel\Configuration\ServiceAuthorizationElement.cs (2)
123if (!typeof(ServiceAuthorizationManager).IsAssignableFrom(type)) 137if (!typeof(IAuthorizationPolicy).IsAssignableFrom(type))
System\ServiceModel\Configuration\ServiceBehaviorElement.cs (2)
38if (!typeof(System.ServiceModel.Description.IServiceBehavior).IsAssignableFrom(element.BehaviorType)) 63if (!typeof(System.ServiceModel.Description.IServiceBehavior).IsAssignableFrom(element.BehaviorType))
System\ServiceModel\Configuration\ServiceCredentialsElement.cs (1)
124if (!typeof(ServiceCredentials).IsAssignableFrom(credentialsType))
System\ServiceModel\Configuration\ServiceModelConfigurationElement.cs (1)
25Contract.Assert(configurationProperty.Type.IsAssignableFrom(typeof(T)), "Parameter 'propertyName' should be the name of a configuration property of type T");
System\ServiceModel\Configuration\ServiceModelExtensionCollectionElement.cs (2)
49if (!this.CollectionElementBaseType.IsAssignableFrom(extensionType)) 344if (this.CollectionElementBaseType.IsAssignableFrom(elementType))
System\ServiceModel\Configuration\StandardBindingCollectionElement.cs (1)
60typeof(StandardBindingElement).IsAssignableFrom(typeof(TBindingConfiguration));
System\ServiceModel\Configuration\StandardEndpointCollectionElement.cs (1)
60typeof(StandardEndpointElement).IsAssignableFrom(typeof(TEndpointConfiguration));
System\ServiceModel\Configuration\UserNameServiceElement.cs (1)
136if (!typeof(UserNamePasswordValidator).IsAssignableFrom(validatorType))
System\ServiceModel\Configuration\X509ClientCertificateAuthenticationElement.cs (1)
109if (!typeof(X509CertificateValidator).IsAssignableFrom(validatorType))
System\ServiceModel\Configuration\X509PeerCertificateAuthenticationElement.cs (1)
91if (!typeof(X509CertificateValidator).IsAssignableFrom(validatorType))
System\ServiceModel\Configuration\X509ServiceCertificateAuthenticationElement.cs (1)
91if (!typeof(X509CertificateValidator).IsAssignableFrom(validatorType))
System\ServiceModel\Configuration\XPathMessageFilterElementCollection.cs (4)
28if (key.GetType().IsAssignableFrom(typeof(XPathMessageFilter))) 32else if (key.GetType().IsAssignableFrom(typeof(string))) 80if (!key.GetType().IsAssignableFrom(typeof(XPathMessageFilter))) 115if (!key.GetType().IsAssignableFrom(typeof(XPathMessageFilter)))
System\ServiceModel\Configuration\XPathMessageFilterElementComparer.cs (3)
81if (obj.GetType().IsAssignableFrom(typeof(XPathMessageFilter))) 85else if (obj.GetType().IsAssignableFrom(typeof(XPathMessageFilterElement))) 89else if (obj.GetType().IsAssignableFrom(typeof(string)))
System\ServiceModel\Description\ConfigLoader.cs (3)
217if (!typeof(T).IsAssignableFrom(type)) 323if (!typeof(IWsdlImportExtension).IsAssignableFrom(wsdlImporterType)) 352if (!typeof(IPolicyImportExtension).IsAssignableFrom(policyImporterType))
System\ServiceModel\Description\ServiceReflector.cs (2)
663if (!t.IsAssignableFrom(potentialContractRoot)) 1010return ((!type.IsSealed) || typeof(IDisposable).IsAssignableFrom(type));
System\ServiceModel\Description\TypeLoader.cs (4)
393if (!typeof(IEnumerable<Type>).IsAssignableFrom(method.ReturnType)) 418if (targetIface.IsAssignableFrom(implType) && targetIface.IsInterface) 621if (!(declaringContract.ContractType.IsAssignableFrom(contractDescription.ContractType))) 679if (!inheritedContractAttr.CallbackContract.IsAssignableFrom(callbackType))
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (5)
534if (typeof(IEnumerable).IsAssignableFrom(bodyObjectType)) 536if (typeof(IXmlSerializable).IsAssignableFrom(bodyObjectType)) 1016(!isArray && typeof(IEnumerable).IsAssignableFrom(member.MemberType) && member.MemberType != typeof(string) && !typeof(XmlNode).IsAssignableFrom(member.MemberType) && !typeof(IXmlSerializable).IsAssignableFrom(member.MemberType)))
System\ServiceModel\Dispatcher\CodeGenerator.cs (3)
836else if (source.IsAssignableFrom(target)) 854else if (target.IsAssignableFrom(source)) 863else if (source.IsAssignableFrom(target))
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (1)
869if (!method.DeclaringType.IsAssignableFrom(type))
System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
156isDetailObjectValid = detailType.IsAssignableFrom(detailObj.GetType());
System\ServiceModel\Dispatcher\MessageRpc.cs (1)
449if (exceptionType.IsAssignableFrom(typeof(FaultException)))
System\ServiceModel\Dispatcher\PartialTrustValidationBehavior.cs (1)
130bool isWSHttpBinding = typeof(WSHttpBinding).IsAssignableFrom(bindingType);
System\ServiceModel\DuplexChannelFactory.cs (1)
244if (callbackType != null && !callbackType.IsAssignableFrom(userObjectType))
System\ServiceModel\Security\SecurityProtocolFactory.cs (2)
777else if (authenticatorType.IsAssignableFrom(spec2AuthenticatorType) || spec2AuthenticatorType.IsAssignableFrom(authenticatorType))
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (1)
510if (tokenTypes[i].IsAssignableFrom(tokenType))
System\ServiceModel\ServiceConfiguration.cs (1)
297|| !contract.ContractType.IsAssignableFrom(otherContract.ContractType)));
System\ServiceModel\ServiceHost.cs (3)
1803if (contractType.IsAssignableFrom(otherContractType)) 1970if ((typeof(IServiceBehavior).IsAssignableFrom(this.serviceType) || typeof(IContractBehavior).IsAssignableFrom(this.serviceType))
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
56if (!typeof(SyndicationFeed).IsAssignableFrom(feedTypeToCreate))
System\ServiceModel\Syndication\Atom10ItemFormatter.cs (1)
39if (!typeof(SyndicationItem).IsAssignableFrom(itemTypeToCreate))
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (2)
41if (!typeof(InlineCategoriesDocument).IsAssignableFrom(inlineDocumentType)) 50if (!typeof(ReferencedCategoriesDocument).IsAssignableFrom(referencedDocumentType))
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (1)
43if (!typeof(ServiceDocument).IsAssignableFrom(documentTypeToCreate))
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (1)
51if (!typeof(SyndicationFeed).IsAssignableFrom(feedTypeToCreate))
System\ServiceModel\Syndication\Rss20ItemFormatter.cs (1)
40if (!typeof(SyndicationItem).IsAssignableFrom(itemTypeToCreate))
System\ServiceModel\Syndication\SyndicationElementExtension.cs (2)
138if (this.extensionData != null && typeof(TExtension).IsAssignableFrom(extensionData.GetType())) 154if (this.extensionData != null && typeof(TExtension).IsAssignableFrom(extensionData.GetType()))
System.ServiceModel.Activation (4)
System\ServiceModel\Activities\Activation\XamlBuildProviderExtension.cs (1)
121if (generatedType != workflowServiceType && workflowServiceType.IsAssignableFrom(generatedType))
System\ServiceModel\ServiceHostingEnvironment.cs (3)
1338if (!typeof(ServiceHostFactoryBase).IsAssignableFrom(compiledType)) 1887if (typeof(System.Xaml.Hosting.XamlBuildProvider).IsAssignableFrom(type)) 2027if (typeof(IServiceModelActivationHandler).IsAssignableFrom(this.serviceModelActivationHandlerType))
System.ServiceModel.Activities (19)
System\ServiceModel\Activities\ContractValidationHelper.cs (9)
221else if (declaredMessageType != null && declaredMessageType.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 236else if (!targetMessage.Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 253if (!targetMessage.Body.Parts[0].Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 502if (!messagePart.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 523|| (message.Body.ReturnValue != null && message.Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))) 529if (operation.Messages[1].MessageType != null || operation.Messages[1].Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 568if (!message.Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 591if (!messagePart.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 613&& operation.Messages[0].Body.Parts[0].Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
System\ServiceModel\Activities\Receive.cs (3)
543if (!messagePart.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 600|| (message.Body.ReturnValue != null && message.Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))) 606if (operation.Messages[1].MessageType != null || operation.Messages[1].Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
System\ServiceModel\Activities\ReceiveMessageContent.cs (1)
102else if (this.Message != null && !this.DeclaredMessageType.IsAssignableFrom(this.Message.ArgumentType))
System\ServiceModel\Activities\SendMessageContent.cs (2)
79return ContractInferenceHelper.ExceptionType.IsAssignableFrom(this.InternalDeclaredMessageType); 117else if (this.Message != null && !this.DeclaredMessageType.IsAssignableFrom(this.Message.ArgumentType))
System\ServiceModel\Activities\SendParametersContent.cs (1)
76return ContractInferenceHelper.ExceptionType.IsAssignableFrom(this.ArgumentTypes[0]);
System\ServiceModel\Activities\SendReply.cs (3)
290if (!message.Body.ReturnValue.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 313if (!messagePart.Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))) 381&& operation.Messages[0].Body.Parts[0].Type.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
System.ServiceModel.Internals (1)
System\Runtime\TypeHelper.cs (1)
274return destinationType.IsAssignableFrom(sourceType);
System.ServiceModel.Web (17)
System\ServiceModel\Configuration\WebHttpBindingElement.cs (1)
269if (!WebContentTypeMapperType.IsAssignableFrom(type))
System\ServiceModel\Configuration\WebMessageEncodingElement.cs (1)
88if (!typeof(WebContentTypeMapper).IsAssignableFrom(CTMType))
System\ServiceModel\Description\WCFServiceClientProxyGenerator.cs (1)
91return (typeof(Message).IsAssignableFrom(t)) ? typeof(object) : t;
System\ServiceModel\Dispatcher\HelpPage.cs (10)
308else if (typeof(Message).IsAssignableFrom(type)) 313else if (typeof(Stream).IsAssignableFrom(type)) 318else if (typeof(Atom10FeedFormatter).IsAssignableFrom(type)) 323else if (typeof(Atom10ItemFormatter).IsAssignableFrom(type)) 328else if (typeof(AtomPub10ServiceDocumentFormatter).IsAssignableFrom(type)) 333else if (typeof(AtomPub10CategoriesDocumentFormatter).IsAssignableFrom(type)) 338else if (typeof(Rss20FeedFormatter).IsAssignableFrom(type)) 343else if (typeof(SyndicationFeedFormatter).IsAssignableFrom(type)) 348else if (typeof(XElement).IsAssignableFrom(type) || typeof(XmlElement).IsAssignableFrom(type))
System\ServiceModel\Dispatcher\QueryStringConverter.cs (3)
61if (typeof(Enum).IsAssignableFrom(type)) 85if (typeof(Enum).IsAssignableFrom(parameterType)) 184if (typeof(Enum).IsAssignableFrom(parameterType))
System\ServiceModel\Dispatcher\SingleBodyParameterDataContractMessageFormatter.cs (1)
123if (!this.parameterDataContractType.IsAssignableFrom(type))
System.Web (111)
Compilation\BaseTemplateCodeDomTreeGenerator.cs (10)
192if (typeof(Control).IsAssignableFrom(builder.ControlType)) { 308if (topLevelControlInTemplate && !typeof(TemplateControl).IsAssignableFrom(ctrlType)) { 394if (typeof(UserControl).IsAssignableFrom(ctrlType) && fControlFieldDeclared && !fControlSkin) { 422if (typeof(Page).IsAssignableFrom(ctrlType) && !fControlSkin) { 447if (!typeof(INamingContainer).IsAssignableFrom(containerType)) { 448if (typeof(INamingContainer).IsAssignableFrom(Parser.BaseType)) { 1167if (!memberType.IsAssignableFrom(builder.ControlType)) { 1169if (!(typeof(Control)).IsAssignableFrom(memberType)) { 1204if (typeof(Control).IsAssignableFrom(builder.DeclareType)) { 1614fTemplate && typeof(Control).IsAssignableFrom(((ControlBuilder)child).ControlType) && !(builder is RootBuilder);
Compilation\BuildProvider.cs (1)
199if (!typeof(BuildProvider).IsAssignableFrom(providerType)) {
Compilation\CompilationUtil.cs (1)
306!typeof(BaseTemplateBuildProvider).IsAssignableFrom(buildProviderType)) {
Compilation\ExpressionBuilder.cs (1)
87if (!typeof(ExpressionBuilder).IsAssignableFrom(expressionBuilderType)) {
Compilation\PageThemeCodeDomTreeGenerator.cs (2)
209Debug.Assert(typeof(Control).IsAssignableFrom(ctrlType)); 235bool isTopLevelCtrlInTemplate = fTemplate && typeof(Control).IsAssignableFrom(((ControlBuilder)child).ControlType);
Configuration\BrowserDefinition.cs (1)
562if (!baseType.IsAssignableFrom(type)) {
Configuration\ConfigUtil.cs (6)
21if (!expectedBaseType.IsAssignableFrom(userBaseType)) { 98if (!baseType.IsAssignableFrom(type)) { 106if (!baseType.IsAssignableFrom(type) && !baseType2.IsAssignableFrom(type)) { 115return typeof(IHttpHandler).IsAssignableFrom(t) 116|| typeof(IHttpHandlerFactory).IsAssignableFrom(t);
Configuration\HandlerBase.cs (2)
242if (!baseType.IsAssignableFrom(type)) { 250if (!baseType.IsAssignableFrom(type)) {
Configuration\HealthMonitoringSectionHelper.cs (1)
542if (typeof(IInternalWebEventProvider).IsAssignableFrom(type)) {
Configuration\PagesSection.cs (1)
497if (!typeof(MasterPageBuildProvider).IsAssignableFrom(buildProviderType)) {
Configuration\ProvidersHelper.cs (2)
30if (!providerType.IsAssignableFrom(t)) 61if (!providerType.IsAssignableFrom(t))
Configuration\RemoteWebConfigurationHostServer.cs (1)
223if (!typeof(ProtectedConfigurationProvider).IsAssignableFrom(t)) {
Configuration\TagMapCollection.cs (1)
85if (tagType.IsAssignableFrom(mappedTagType) == false) {
DynamicModuleRegistry.cs (1)
24if (!typeof(IHttpModule).IsAssignableFrom(moduleType)) {
Hosting\ApplicationManager.cs (1)
283if (!typeof(IRegisteredObject).IsAssignableFrom(type))
Hosting\PreloadHost.cs (1)
34if (!typeof(IProcessHostPreloadClient).IsAssignableFrom(preloadObjType)) {
ModelBinding\CollectionModelBinderUtil.cs (1)
95if (modelMetadata.ModelType.IsAssignableFrom(closedNewInstanceType)) {
ModelBinding\DataAnnotationsModelValidatorProvider.cs (5)
103if (typeof(IValidatableObject).IsAssignableFrom(metadata.ModelType)) { 189if (!typeof(ModelValidator).IsAssignableFrom(adapterType)) { 206if (!typeof(ValidationAttribute).IsAssignableFrom(attributeType)) { 318if (!typeof(ModelValidator).IsAssignableFrom(adapterType)) { 334if (!typeof(IValidatableObject).IsAssignableFrom(modelType)) {
ModelBinding\GenericModelBinderProvider.cs (1)
99if (!typeof(IModelBinder).IsAssignableFrom(modelBinderType)) {
ModelBinding\ModelBinderProviderCollection.cs (2)
117if (typeof(ModelBinderProvider).IsAssignableFrom(attr.BinderType)) { 120else if (typeof(IModelBinder).IsAssignableFrom(attr.BinderType)) {
ModulesEntry.cs (1)
42if (!typeof(IHttpModule).IsAssignableFrom(_type)) {
Profile\HttpProfileBase.cs (2)
226if (!typeof(ProfileBase).IsAssignableFrom(t)) { 250if (!typeof(ProfileBase).IsAssignableFrom(t))
Security\Membership.cs (1)
466if (!typeof(MembershipProvider).IsAssignableFrom(t))
Security\Roles.cs (1)
537if (!typeof(RoleProvider).IsAssignableFrom(t))
UI\CollectionBuilder.cs (1)
90if (!_itemType.IsAssignableFrom(childType)) {
UI\ControlBuilder.cs (21)
103Debug.Assert(typeof(INamingContainer).IsAssignableFrom(ctrlType), String.Format(CultureInfo.InvariantCulture, "NamingContainerBuilder.Control type {0} is not an INamingContainer", ctrlType.FullName)); 106if (typeof(INonBindingContainer).IsAssignableFrom(ctrlType)) { 121Debug.Assert(typeof(INamingContainer).IsAssignableFrom(ctrlType), String.Format(CultureInfo.InvariantCulture, "NamingContainerBuilder.Control type {0} is not an INamingContainer", ctrlType.FullName)); 124if (typeof(INonBindingContainer).IsAssignableFrom(ctrlType)) { 515else if (typeof(INamingContainer).IsAssignableFrom(ParentBuilder.ControlType)) { 1171if (!typeof(INamingContainer).IsAssignableFrom(templateAttrib.ContainerType)) { 1495Debug.Assert(typeof(IParserAccessor).IsAssignableFrom(parentObj.GetType())); 1742if (typeof(ICollection).IsAssignableFrom(childType)) { 1748else if (typeof(ITemplate).IsAssignableFrom(childType)) { 1909flags[controlTypeIsControl] = typeof(Control).IsAssignableFrom(_controlType); 1917if (!typeof(IParserAccessor).IsAssignableFrom(type)) { 1943ParseTimeData.IsHtmlControl = typeof(HtmlControl).IsAssignableFrom(_controlType); 1946ParseTimeData.SupportsAttributes = typeof(IAttributeAccessor).IsAssignableFrom(_controlType); 2011flags[isICollection] = typeof(ICollection).IsAssignableFrom(ControlType); 2014flags[isIParserAccessor] = typeof(IParserAccessor).IsAssignableFrom(obj.GetType()); 2443else if (evalValue != null && !entry.Type.IsAssignableFrom(evalValue.GetType())) { 2528if (fieldInfo == null || fieldInfo.IsPrivate || !fieldInfo.FieldType.IsAssignableFrom(control.GetType())) { 2806return typeof(ICollection).IsAssignableFrom(ParentBuilder.DefaultPropertyBuilder.ControlType); 2809return typeof(ICollection).IsAssignableFrom(ParentBuilder.ControlType); 3013flags[controlTypeIsControl] = typeof(Control).IsAssignableFrom(_controlType); 3086bool useCurrentControlType = propInfo.DeclaringType.IsAssignableFrom(_controlType);
UI\MasterPage.cs (1)
189if (!typeof(MasterPage).IsAssignableFrom(result.InstantiatedType)) {
UI\ObjectConverter.cs (16)
46if (toType.IsAssignableFrom(fromType)) { 51if (typeof(string).IsAssignableFrom(fromType)) { 52if (typeof(int).IsAssignableFrom(toType)) { 55else if (typeof(bool).IsAssignableFrom(toType)) { 58else if (typeof(DateTime).IsAssignableFrom(toType)) { 61else if (typeof(Decimal).IsAssignableFrom(toType)) { 65else if (typeof(Double).IsAssignableFrom(toType)) { 68else if (typeof(Int16).IsAssignableFrom(toType)) { 76else if (typeof(string).IsAssignableFrom(toType)) { 77if (typeof(int).IsAssignableFrom(fromType)) { 80else if (typeof(bool).IsAssignableFrom(fromType)) { 107else if (typeof(DateTime).IsAssignableFrom(fromType)) { 110else if (typeof(Decimal).IsAssignableFrom(fromType)) { 113else if (typeof(Double).IsAssignableFrom(fromType)) { 116else if (typeof(Single).IsAssignableFrom(fromType)) { 119else if (typeof(Int16).IsAssignableFrom(fromType)) {
UI\ObjectPersistData.cs (1)
38if (typeof(ICollection).IsAssignableFrom(_objectType)) {
UI\Page.cs (1)
3444if (typeof(Page).IsAssignableFrom(result.InstantiatedType)) {
UI\PageParser.cs (6)
186if (!typeof(MasterPage).IsAssignableFrom(type)) { 534if (!typeof(MasterPage).IsAssignableFrom(type)) { 687if (value != null && !typeof(Page).IsAssignableFrom(value)) { 703if (value != null && !typeof(UserControl).IsAssignableFrom(value)) { 719if (value != null && !typeof(HttpApplication).IsAssignableFrom(value)) { 735if (value != null && !typeof(PageParserFilter).IsAssignableFrom(value)) {
UI\PageTheme.cs (1)
41if (!typeof(Control).IsAssignableFrom(ctrlType)) {
UI\TemplateControlParser.cs (2)
151if (enforcePage && !typeof(Page).IsAssignableFrom(t)) { 156if (enforceControl && !typeof(UserControl).IsAssignableFrom(t)) {
UI\TemplateParser.cs (1)
2112if (!DefaultBaseType.IsAssignableFrom(baseType)) {
UI\Util.cs (1)
519if (!baseType.IsAssignableFrom(type)) {
UI\WebControls\ModelDataSourceView.cs (7)
253if (parameter.ParameterType.IsAssignableFrom(typeof(int))) { 259if (parameter.ParameterType.IsAssignableFrom(typeof(int))) { 265if (parameter.IsOut && typeof(int).IsAssignableFrom(parameter.ParameterType.GetElementType())) { 300if (parameter.ParameterType.IsAssignableFrom(typeof(string))) { 337bool returnTypeIsTask = typeof(Task).IsAssignableFrom(methodInfo.ReturnType); 390if (typeof(IQueryable<>).MakeGenericType(typeParameter).IsAssignableFrom(selectMethodReturnType)) { 398bool isReturningQueryable = queryableModelType != null && queryableModelType.IsAssignableFrom(selectMethodReturnType);
UI\WebControls\WizardStepBase.cs (1)
23!(typeof(WizardStepCollection).IsAssignableFrom(parentBuilder.ControlType))) {
UI\WebParts\BlobPersonalizationState.cs (1)
1247return _controlType.IsAssignableFrom(c.GetType());
UI\WebParts\PersonalizationStateQuery.cs (1)
82(value != null && !valueType.IsAssignableFrom(value.GetType()))) {
UI\WebParts\PropertyGridEditorPart.cs (2)
197else if (typeof(Enum).IsAssignableFrom(propertyType)) { 342else if (typeof(Enum).IsAssignableFrom(propertyType)) {
System.Web.DynamicData (2)
DynamicData\MetaTable.cs (1)
885if (EntityType.IsAssignableFrom(row.GetType())) {
DynamicData\ModelProviders\SchemaCreator.cs (1)
41return contextType != null && typeof(T).IsAssignableFrom(contextType);
System.Web.Entity (12)
System\Data\WebControls\EntityDataSourceUtil.cs (7)
532if (type.IsAssignableFrom(typeof(Decimal)) && Decimal.TryParse(s, out decimalResult)) 536else if (type.IsAssignableFrom(typeof(DbGeography)) && TryParseGeography(s, out geographyResult)) 540else if (type.IsAssignableFrom(typeof(DbGeometry)) && TryParseGeometry(s, out geometryResult)) 553if (type.IsGenericType && typeof(Nullable<>).IsAssignableFrom(type.GetGenericTypeDefinition()) && !type.ContainsGenericParameters) 614Debug.Assert(typeof(DbGeography).IsAssignableFrom(typeof(T)) || typeof(DbGeometry).IsAssignableFrom(typeof(T)), "This method should be called only for spatial type"); 1090!SecurityType.IsAssignableFrom(type));
System\Data\WebControls\EntityDataSourceView.cs (1)
287if (!typeof(T).IsAssignableFrom(elementType))
System\Data\WebControls\EntityDataSourceViewSchema.cs (4)
129if (typeof(IList).IsAssignableFrom(type) || 130typeof(ITypedList).IsAssignableFrom(type) || 131typeof(IListSource).IsAssignableFrom(type)) 157if (typeof(Array).IsAssignableFrom(type))
System.Web.Extensions (31)
ClientServices\Providers\ClientSettingsProvider.cs (1)
556if (de.Value != null && !setting.PropertyType.IsAssignableFrom(de.Value.GetType()))
Compilation\WCFModel\SchemaMerger.cs (1)
279if (typeof(System.Collections.ICollection).IsAssignableFrom(propertyInfo.PropertyType))
Configuration\ConvertersCollection.cs (1)
86if (!typeof(JavaScriptConverter).IsAssignableFrom(t)) {
Script\Serialization\ObjectConverter.cs (7)
224if (type != null && !type.IsAssignableFrom(o.GetType())) { 396if (type.IsAssignableFrom(o.GetType())) { 463if (strongTypedEnumerable.IsAssignableFrom(type)) { 470if (IsClientInstantiatableType(type, serializer) && typeof(IList).IsAssignableFrom(type)) { 475if (t.IsAssignableFrom(type)) { 498else if (IsClientInstantiatableType(type, serializer) && typeof(IList).IsAssignableFrom(type)) { 563(typeof(IDictionary).IsAssignableFrom(type) || type.GetGenericTypeDefinition() == _idictionaryGenericType) &&
Script\Services\ProxyGenerator.cs (1)
68return typeof(System.Web.UI.Page).IsAssignableFrom(type);
Script\Services\ServicesUtilities.cs (2)
76if (typeof(IDictionary).IsAssignableFrom(type)) { 90if (type.IsArray || typeof(IEnumerable).IsAssignableFrom(type)) {
Script\Services\WebServiceData.cs (6)
347typeof(IEnumerable).IsAssignableFrom(t) || typeof(IDictionary).IsAssignableFrom(t) || 410typeof(IEnumerable).IsAssignableFrom(t) || typeof(IDictionary).IsAssignableFrom(t) || 441if (!(typeof(IEnumerable).IsAssignableFrom(t) || typeof(IDictionary).IsAssignableFrom(t))) {
UI\AsyncPostBackTrigger.cs (1)
111(typeof(EventArgs).IsAssignableFrom(parameters[1].ParameterType) == false)) {
UI\ScriptControlManager.cs (1)
306if (type.IsAssignableFrom(targetControlType)) {
UI\WebControls\Dynamic.cs (5)
768if (left.Type.IsAssignableFrom(right.Type)) { 771else if (right.Type.IsAssignableFrom(left.Type)) { 1164if (exprType.IsAssignableFrom(type) || type.IsAssignableFrom(exprType) || 1593if (!target.IsValueType) return target.IsAssignableFrom(source);
UI\WebControls\Expressions\MethodExpression.cs (2)
131if (parameterArray.Length == 0 || !parameterArray[0].ParameterType.IsAssignableFrom(source.GetType())) { 156if (queryable == null || !queryable.ElementType.IsAssignableFrom(source.ElementType)) {
UI\WebControls\LinqDataSourceView.cs (3)
539if ((dlinqTable != null) && dataObjectType.IsAssignableFrom(EntityType)) { 921if (!selecting && !typeof(DataContext).IsAssignableFrom(contextType)) { 960if (!(tableType.IsGenericType && tableType.GetGenericArguments().Length == 1 && typeof(ITable).IsAssignableFrom(tableType))) {
System.Web.Mobile (20)
UI\MobileControls\Design\Converters\FormConverter.cs (1)
43if (containerType.IsAssignableFrom(control.GetType()))
UI\MobileControls\Design\Converters\ValidatedMobileControlConverter.cs (1)
37if (containerType.IsAssignableFrom(control.GetType()))
UI\MobileControls\Design\MobileControlPersister.cs (5)
113Debug.Assert(typeof(ICollection).IsAssignableFrom(propDesc.PropertyType), 389else if (typeof(ITemplate).IsAssignableFrom(propDescs[i].PropertyType)) { 401typeof(IDictionary).IsAssignableFrom(propDescs[i].PropertyType)) { 410else if (typeof(ICollection).IsAssignableFrom(propDescs[i].PropertyType)) { 692Debug.Assert(typeof(ITemplate).IsAssignableFrom(propDesc.PropertyType),
UI\MobileControls\DeviceSpecificChoice.cs (2)
227if (type.IsAssignableFrom(typeof(String))) 231else if (type.IsAssignableFrom(typeof(int)))
UI\MobileControls\Form.cs (3)
768(typeof(MobileControl).IsAssignableFrom(controlType)) || 769(typeof(UserControl).IsAssignableFrom(controlType)) || 770(typeof(DeviceSpecific).IsAssignableFrom(controlType))
UI\MobileControls\IndividualDeviceConfig.cs (1)
116Debug.Assert(typeof(IPageAdapter).IsAssignableFrom(value));
UI\MobileControls\MobileControlBuilder.cs (4)
59if (typeof(Form).IsAssignableFrom(type)) 66if (typeof(StyleSheet).IsAssignableFrom(type)) 73if (typeof(Style).IsAssignableFrom(type) && !typeof(StyleSheet).IsAssignableFrom(ControlType))
UI\MobileControls\MobileControlsSectionHandler.cs (2)
55if (!(typeof(IDictionary).IsAssignableFrom(t))) 223if (typeImplemented != null && !typeImplemented.IsAssignableFrom(t)) {
UI\MobileControls\MobilePage.cs (1)
298if(t != null && typeof(IDictionary).IsAssignableFrom(t))
System.Web.Services (15)
System\Web\Services\Description\MimeXmlReflector.cs (1)
28if (typeof(XmlNode).IsAssignableFrom(ReflectionContext.Method.ReturnType)) {
System\Web\Services\Description\ServiceDescription.cs (2)
1468if (type.IsAssignableFrom(item.GetType())) { 1484if (type.IsAssignableFrom(item.GetType())) {
System\Web\Services\Discovery\DiscoveryClientProtocol.cs (1)
133if (!typeof(DiscoveryReference).IsAssignableFrom(type))
System\Web\Services\Protocols\ClientProtocol.cs (1)
915if (typeof(SoapHttpClientProtocol).IsAssignableFrom(type)) {
System\Web\Services\Protocols\HttpClientProtocol.cs (1)
64bool isWriter = typeof(MimeParameterWriter).IsAssignableFrom(t);
System\Web\Services\Protocols\LogicalMethodInfo.cs (3)
467return typeof(IAsyncResult).IsAssignableFrom(methodInfo.ReturnType) && 478typeof(IAsyncResult).IsAssignableFrom(paramInfos[0].ParameterType) && 582if (typeof(SoapExtensionAttribute).IsAssignableFrom(type))
System\Web\Services\Protocols\SoapHeader.cs (4)
220if (typeof(SoapHeader).IsAssignableFrom(o.GetType())) { 401if (mapping.headerType.IsAssignableFrom(header.GetType())) { 413if (mapping.headerType.IsAssignableFrom(header.GetType())) { 473if (mapping.headerType.IsAssignableFrom(headerType)) {
System\Web\Services\Protocols\SoapReflector.cs (1)
471if (!typeof(SoapHeader).IsAssignableFrom(soapHeader.headerType)) throw HeaderException(headerAttribute.MemberName, methodInfo.DeclaringType, Res.WebHeaderType);
System\Web\Services\WebMethodAttribute.cs (1)
313if (method.DeclaringType.IsAssignableFrom(methods[i].DeclaringType)) {
System.Windows.Forms (97)
misc\ImageListUtils.cs (1)
40if (typeof(ImageList).IsAssignableFrom(prop.PropertyType)) {
winforms\Managed\System\WinForms\BindingContext.cs (1)
368if (typeof(IList).IsAssignableFrom(prop.PropertyType))
winforms\Managed\System\WinForms\BindingMAnagerBase.cs (2)
151if (typeof(IList).IsAssignableFrom(listType)) { 170if (typeof(IList).IsAssignableFrom(listType)) {
winforms\Managed\System\WinForms\BindingSource.cs (4)
819if (typeof(ITypedList).IsAssignableFrom(type) && typeof(IList).IsAssignableFrom(type)) { 822else if (typeof(IListSource).IsAssignableFrom(type)) { 1649if (value != null && !itemType.IsAssignableFrom(value.GetType())) {
winforms\Managed\System\WinForms\BindToObject.cs (1)
155if (typeof(Array).IsAssignableFrom(type))
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (5)
126Debug.Assert(typeof(Attribute).IsAssignableFrom(t), "Attribute type " + t.FullName + " does not derive from Attribute"); 127if (!typeof(Attribute).IsAssignableFrom(t)) { 150Debug.Assert(typeof(Attribute).IsAssignableFrom(t), "Attribute type " + t.FullName + " does not derive from Attribute"); 151if (!typeof(Attribute).IsAssignableFrom(t)) { 164if (pis.Length == 1 && pis[0].ParameterType.IsAssignableFrom(varParams[i].GetType())) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (1)
75if (typeof(UnsafeNativeMethods.IDispatch).IsAssignableFrom(sender.PropertyType)) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IProvidePropertyBuilderHandler.cs (1)
76if (typeof(UnsafeNativeMethods.IDispatch).IsAssignableFrom(sender.PropertyType)) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (2)
117if (typeof(UnsafeNativeMethods.IDispatch).IsAssignableFrom(sender.PropertyType) && sender.CanShow){ 185if (sender.CanShow && typeof(UnsafeNativeMethods.IDispatch).IsAssignableFrom(sender.PropertyType)){
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Properties.cs (1)
281if (t.IsAssignableFrom(handler.Interface)) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
744if (converterType != null && typeof(TypeConverter).IsAssignableFrom(converterType)) { 763if (!typeof(UnsafeNativeMethods.IDispatch).IsAssignableFrom(this.PropertyType)) {
winforms\Managed\System\WinForms\Control.cs (3)
8730if (DpiHelper.EnableDpiChangedMessageHandling && !(typeof(Form).IsAssignableFrom(this.GetType()))) { 12636if (this.GetType().IsAssignableFrom(typeof(TabControl))) { 18890else if (clientSite.GetType().IsAssignableFrom(service)) {
winforms\Managed\System\WinForms\DataGridColumn.cs (1)
387if (!typeof(IList).IsAssignableFrom(prop.PropertyType) && prop.Name.Equals(this.HeaderText))
winforms\Managed\System\WinForms\DataGridTable.cs (2)
1449return typeof(IList).IsAssignableFrom(prop.PropertyType) && !typeof(Array).IsAssignableFrom(prop.PropertyType);
winforms\Managed\System\WinForms\DataGridViewBand.cs (1)
189if (Type.GetType("System.Windows.Forms.DataGridViewHeaderCell").IsAssignableFrom(value))
winforms\Managed\System\WinForms\DataGridViewCell.cs (4)
1906(formattedValue == null || !this.FormattedValueType.IsAssignableFrom(formattedValue.GetType()))) 1940(formattedValue == null || this.FormattedValueType == null || !this.FormattedValueType.IsAssignableFrom(formattedValue.GetType()))) 1945!typeof(System.ValueType).IsAssignableFrom(this.FormattedValueType)) 4470!this.FormattedValueType.IsAssignableFrom(formattedValue.GetType()))
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (16)
82if (value == null || !this.FormattedValueType.IsAssignableFrom(value.GetType())) 153if (this.FormattedValueType.IsAssignableFrom(defaultCheckStateType)) 180else if (this.FormattedValueType.IsAssignableFrom(defaultBooleanType)) 478this.ThreeState = (value != null && defaultCheckStateType.IsAssignableFrom(value)); 1639Debug.Assert(formattedValue == null || this.FormattedValueType == null || this.FormattedValueType.IsAssignableFrom(formattedValue.GetType())); 1651else if (this.ValueType != null && this.ValueType.IsAssignableFrom(defaultBooleanType)) 1655else if (this.ValueType != null && this.ValueType.IsAssignableFrom(defaultCheckStateType)) 1666else if (this.ValueType != null && this.ValueType.IsAssignableFrom(defaultBooleanType)) 1670else if (this.ValueType != null && this.ValueType.IsAssignableFrom(defaultCheckStateType)) 1685else if (this.ValueType != null && this.ValueType.IsAssignableFrom(defaultBooleanType)) 1689else if (this.ValueType != null && this.ValueType.IsAssignableFrom(defaultCheckStateType)) 1699else if (this.ValueType != null && this.ValueType.IsAssignableFrom(defaultBooleanType)) 1703else if (this.ValueType != null && this.ValueType.IsAssignableFrom(defaultCheckStateType)) 1713else if (this.ValueType != null && this.ValueType.IsAssignableFrom(defaultCheckStateType)) 1735if (this.FormattedValueType.IsAssignableFrom(typeof(System.Windows.Forms.CheckState))) 1750else if (this.FormattedValueType.IsAssignableFrom(defaultBooleanType))
winforms\Managed\System\WinForms\DataGridViewColumn.cs (1)
585this.HeaderCell.ValueType.IsAssignableFrom(typeof(System.String)))
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
1148if (value == null || ((this.ValueType != null && !this.ValueType.IsAssignableFrom(value.GetType())) && value != System.DBNull.Value))
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (3)
1003else if (typeof(System.Drawing.Image).IsAssignableFrom(type) || imageTypeConverter.CanConvertFrom(type)) 1024if (typeof(IList).IsAssignableFrom(this.props[i].PropertyType)) 1579if (!columnType.IsAssignableFrom(valueType))
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (5)
55if (defaultTypeImage.IsAssignableFrom(this.ValueType)) 59else if (defaultTypeIcon.IsAssignableFrom(this.ValueType)) 272this.ValueIsIcon = (value != null && defaultTypeIcon.IsAssignableFrom(value)); 611if (defaultTypeImage.IsAssignableFrom(this.ValueType)) 619else if (defaultTypeIcon.IsAssignableFrom(this.ValueType))
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
25465(dataGridViewCurrentCell.FormattedValueType != null && dataGridViewCurrentCell.FormattedValueType.IsAssignableFrom(nullValue.GetType()))) 25524dataGridViewCurrentCell.ValueType.IsAssignableFrom(dgvcpe.Value.GetType()))
winforms\Managed\System\WinForms\FeatureSupport.cs (1)
60if (featureId != null && typeof(IFeatureSupport).IsAssignableFrom(c)) {
winforms\Managed\System\WinForms\Form.cs (2)
6602if(t.IsAssignableFrom(type)) { 6641thisToolstrip.GetType().IsAssignableFrom(sourceToolStrip.GetType())) {
winforms\Managed\System\WinForms\Formatter.cs (2)
160if (targetType.IsAssignableFrom(sourceType)) { 309else if (value != null && targetType.IsAssignableFrom(value.GetType())) {
winforms\Managed\System\WinForms\ImageIndexConverter.cs (1)
103if (typeof(ImageList).IsAssignableFrom(prop.PropertyType)) {
winforms\Managed\System\WinForms\ImageKeyConverter.cs (1)
118if (typeof(ImageList).IsAssignableFrom(prop.PropertyType)) {
winforms\Managed\System\WinForms\ListBindingHelper.cs (11)
238if ((list is Type) && (typeof(IListSource).IsAssignableFrom(list as Type))) { 246if (typeof(Array).IsAssignableFrom(listType)) { 325if (typeof(Array).IsAssignableFrom(type)) { 329else if (typeof(IList).IsAssignableFrom(type)) { 506if (typeof(IList).IsAssignableFrom(type) || 507typeof(ITypedList).IsAssignableFrom(type) || 508typeof(IListSource).IsAssignableFrom(type)) { 514if (typeof(IList<>).IsAssignableFrom(type.GetGenericTypeDefinition())) { 522if (typeof(IList<>).IsAssignableFrom(curInterface.GetGenericTypeDefinition())) { 577if (typeof(Array).IsAssignableFrom(targetType)) { 588if (indexer != null && !typeof(ICustomTypeDescriptor).IsAssignableFrom(indexer.PropertyType)) {
winforms\Managed\System\WinForms\ListControl.cs (2)
308if (typeof(IList).IsAssignableFrom(props[i].PropertyType)) 316if (typeof(IList).IsAssignableFrom(props[i].PropertyType))
winforms\Managed\System\WinForms\PropertyGrid.cs (2)
1883else if (typeof(EventsTab).IsAssignableFrom(tabType)) { 3462if (currentObjects[i] == e.ComponentChanged || typeChanged != null && typeChanged.IsAssignableFrom(currentObjects[i].GetType())) {
winforms\Managed\System\WinForms\PropertyGridInternal\MergePropertyDescriptor.cs (1)
393if (value is IList && typeof(IList).IsAssignableFrom(PropertyType)) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
150if (!componentType.IsPublic || !componentType.IsAssignableFrom(ownerType)) {
winforms\Managed\System\WinForms\RelatedCurrencyManager.cs (1)
46if (fieldInfo == null || !typeof(IList).IsAssignableFrom(fieldInfo.PropertyType)) {
winforms\Managed\System\WinForms\ToolBar.cs (1)
1547if ((menu.GetType()).IsAssignableFrom(typeof(ContextMenu))) {
winforms\Managed\System\WinForms\ToolStripContainer.cs (2)
464if (!contentPanelType.IsAssignableFrom(controlType) && !panelType.IsAssignableFrom(controlType)) {
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
760if (typeof(ToolStripDropDownItem).IsAssignableFrom(childItem.GetType())) {
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (1)
213typeof(ToolStripButton).IsAssignableFrom(e.Item.GetType()) &&
winforms\Managed\System\WinForms\ToolStripManager.cs (4)
1894(sourceToolStrip.GetType().IsAssignableFrom(targetToolStrip.GetType()) || targetToolStrip.GetType().IsAssignableFrom(sourceToolStrip.GetType())) 2197if (x.GetType().IsAssignableFrom(y.GetType())) { 2200if (y.GetType().IsAssignableFrom(x.GetType())) {
winforms\Managed\System\WinForms\ToolStripSettings.cs (1)
301if (baseType.IsAssignableFrom(controlsToLookIn[i].GetType())) {
winforms\Managed\System\WinForms\TreeViewImageIndexConverter.cs (1)
99if (typeof(ImageList).IsAssignableFrom(prop.PropertyType)) {
winforms\Managed\System\WinForms\WinFormsUtils.cs (1)
560if (!typeOfControl.IsAssignableFrom(value.GetType())) {
System.Workflow.Activities (19)
Common\BasePropertyDescriptor.cs (1)
642if (baseConverterType != null && typeof(TypePropertyTypeConverter).IsAssignableFrom(baseConverterType))
Common\CompModHelpers.cs (1)
756mismatch = (parameters[index].ParameterType == null) || (!parameters[index].ParameterType.IsAssignableFrom(types[index]));
Designers\EventDrivenDesigner.cs (2)
26if (!(Type.GetType("System.Workflow.Activities.ListenActivity," + AssemblyRef.ActivitiesAssemblyRef).IsAssignableFrom(parentActivityDesigner.Activity.GetType())) && 28!(Type.GetType("System.Workflow.Activities.StateActivity," + AssemblyRef.ActivitiesAssemblyRef).IsAssignableFrom(parentActivityDesigner.Activity.GetType())))
Designers\ServiceDesigner.cs (4)
51if (typeof(SetStateActivity).IsAssignableFrom(activityType) || 52typeof(StateActivity).IsAssignableFrom(activityType) || 53typeof(StateInitializationActivity).IsAssignableFrom(activityType) || 54typeof(StateFinalizationActivity).IsAssignableFrom(activityType))
Designers\StateMachineWorkflowDesigner.cs (1)
107if (typeof(ListenActivity).IsAssignableFrom(activityType))
Executors\InboundActivityHelper.cs (1)
89if ((typeof(ExternalDataEventArgs).IsAssignableFrom(formalParameter.ParameterType)))
LocalService\CorrelationResolver.cs (1)
371if (typeof(ExternalDataEventArgs).IsAssignableFrom(parameters[1].ParameterType))
LocalService\ExternalDataExchangeService.cs (5)
166if (typeof(IServiceProvider).IsAssignableFrom(pi[0].ParameterType)) 170else if (typeof(NameValueCollection).IsAssignableFrom(pi[0].ParameterType)) 177if (typeof(IServiceProvider).IsAssignableFrom(pi[0].ParameterType) 178&& typeof(NameValueCollection).IsAssignableFrom(pi[1].ParameterType)) 259if (serviceType.IsAssignableFrom(service.GetType()))
Rules\Executor.cs (1)
825if (toType.IsAssignableFrom(currentType))
Rules\Literal.cs (2)
742(lhs.IsAssignableFrom(rhs)) || (rhs.IsAssignableFrom(lhs)))
System.Workflow.ComponentModel (113)
AuthoringOM\ActivityExecutionContext.cs (5)
141if (schedulerServiceType != null && schedulerServiceType.IsAssignableFrom(serviceType)) 144if (persistenceServiceType != null && persistenceServiceType.IsAssignableFrom(serviceType)) 147if (trackingServiceType != null && trackingServiceType.IsAssignableFrom(serviceType)) 150if (transactionServiceType != null && transactionServiceType.IsAssignableFrom(serviceType)) 153if (loaderServiceType != null && loaderServiceType.IsAssignableFrom(serviceType))
AuthoringOM\ActivityExecutor.cs (1)
209if (!typeof(ActivityExecutor).IsAssignableFrom(executorType))
AuthoringOM\Behaviors\CompensatableTransactionScopeActivityDesigner.cs (2)
28!typeof(CancellationHandlerActivity).IsAssignableFrom(activityType) && 29!typeof(FaultHandlersActivity).IsAssignableFrom(activityType))
AuthoringOM\Behaviors\ExceptionHandlers.cs (1)
199if (previousType != catchType && previousType.IsAssignableFrom(catchType))
AuthoringOM\Behaviors\TransactionScopeDesigner.cs (2)
28!typeof(CancellationHandlerActivity).IsAssignableFrom(activityType) && 29!typeof(FaultHandlersActivity).IsAssignableFrom(activityType))
AuthoringOM\Bind.cs (1)
779if (targetType != null && typeof(Delegate).IsAssignableFrom(targetType) && (memberInfo == null || !(memberInfo is EventInfo)))
AuthoringOM\Compiler\CodeGeneration\CodeGeneratorAttribute.cs (1)
14if (!typeof(ActivityCodeGenerator).IsAssignableFrom(codeGeneratorType))
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (6)
888if (typeof(PropertyInfo).IsAssignableFrom(type)) 895else if (typeof(EventInfo).IsAssignableFrom(type)) 897else if (typeof(ConstructorInfo).IsAssignableFrom(type)) 899else if (typeof(MethodInfo).IsAssignableFrom(type)) 906else if (typeof(FieldInfo).IsAssignableFrom(type)) 908else if (typeof(Type).IsAssignableFrom(type))
AuthoringOM\Compiler\TypeSystem\TypeProvider.cs (2)
692return toType.IsAssignableFrom(fromType); 719return toType.IsAssignableFrom(fromType);
AuthoringOM\Compiler\Validation\BindValidator.cs (4)
680if (typeof(Delegate).IsAssignableFrom(baseType)) 712else if (memberInfo == null && baseType != null && typeof(Delegate).IsAssignableFrom(baseType)) 862if (typeof(WorkflowParameterBinding).IsAssignableFrom(memberInfo.DeclaringType)) 900if (typeof(WorkflowParameterBinding).IsAssignableFrom(memberInfo.DeclaringType))
AuthoringOM\Compiler\Validation\DependencyObjectValidator.cs (1)
82else if (!dependencyProperty.PropertyType.IsAssignableFrom(dependencyProperty.DefaultMetadata.DefaultValue.GetType()))
AuthoringOM\ComponentFactoryHelpers.cs (1)
118if ((component != null && expectedBaseType != null && expectedBaseType.IsAssignableFrom(component.GetType())))
AuthoringOM\DependencyObject.cs (9)
120if (!dependencyProperty.IsAttached && !dependencyProperty.OwnerType.IsAssignableFrom(this.GetType())) 126if (dependencyProperty.DefaultMetadata != null && dependencyProperty.DefaultMetadata.IsMetaProperty && !typeof(ActivityBind).IsAssignableFrom(dependencyProperty.PropertyType)) 182if (this.metaProperties != null && !this.DesignMode && value is ActivityBind && !typeof(ActivityBind).IsAssignableFrom(dependencyProperty.PropertyType)) 188if (!dependencyProperty.PropertyType.IsAssignableFrom(value.GetType())) 211if (!dependencyProperty.IsAttached && !dependencyProperty.OwnerType.IsAssignableFrom(this.GetType())) 255if (!dependencyProperty.IsAttached && !dependencyProperty.OwnerType.IsAssignableFrom(this.GetType())) 263if (value != null && !dependencyProperty.PropertyType.IsAssignableFrom(value.GetType())) 346if (!dependencyEvent.IsAttached && !dependencyEvent.OwnerType.IsAssignableFrom(this.GetType())) 349if (value != null && !dependencyEvent.PropertyType.IsAssignableFrom(value.GetType()))
AuthoringOM\DependencyProperty.cs (3)
108else if (!typeof(Validator).IsAssignableFrom(validatorType)) 179bool isEvent = (typeof(System.Delegate).IsAssignableFrom(propertyType) && (defaultMetadata == null || (defaultMetadata.Options & DependencyPropertyOptions.DelegateProperty) == 0)); 272this.isEvent = (typeof(System.Delegate).IsAssignableFrom(this.propertyType) && (this.defaultMetadata == null || (this.defaultMetadata.Options & DependencyPropertyOptions.DelegateProperty) == 0));
AuthoringOM\Design\ActivityDesigner.cs (1)
2502if (toolBoxItemAttribute != null && typeof(System.Workflow.ComponentModel.Design.ActivityToolboxItem).IsAssignableFrom(toolBoxItemAttribute.ToolboxItemType))
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (1)
333if (propertyType.IsAssignableFrom(typeof(System.Drawing.Color)))
AuthoringOM\Design\DesignerHelpers.cs (1)
1738if (value != null && ruleConditionType.IsAssignableFrom(value.GetType()))
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (4)
568Type activityType = (eventArgs.Node != null && typeof(Activity).IsAssignableFrom(eventArgs.Node.Tag as System.Type)) ? eventArgs.Node.Tag as System.Type : null; 798if (parentCatagoryAttribute != null && parentCatagoryAttribute.Category == item.Text && (item.Tag == null || !typeof(Activity).IsAssignableFrom(item.Tag.GetType()))) 802if (designerCatagoryAttribute.Category == item.Text && (item.Tag == null || !typeof(Activity).IsAssignableFrom(item.Tag.GetType()))) 1009if (toolboxItemAttrib != null && toolboxItemAttrib.ToolboxItemType != null && typeof(ActivityToolboxItem).IsAssignableFrom(toolboxItemAttrib.ToolboxItemType))
AuthoringOM\Design\IdentifierCreationService.cs (2)
91if (memberType == null || !typeof(Activity).IsAssignableFrom(memberType)) 156if (memberType == null || !typeof(Activity).IsAssignableFrom(memberType))
AuthoringOM\Design\MessageFilters\GlyphManager.cs (1)
49else if (type.IsAssignableFrom(designerGlyph.GetType()) && glyph == null)
AuthoringOM\Design\PropertyDescriptors.cs (5)
183if (string.Equals(propDesc.Name, "Name", StringComparison.Ordinal) && typeof(Activity).IsAssignableFrom(propDesc.ComponentType)) 194if (typeof(Type).IsAssignableFrom(propDesc.PropertyType) && !(propDesc is ParameterInfoBasedPropertyDescriptor)) 198else if (typeof(Type).IsAssignableFrom(propDesc.PropertyType)) 283if (typeof(ActivityBindTypeConverter).IsAssignableFrom(baseTypeConverter.GetType())) 690if (typeof(DependencyObject).IsAssignableFrom(propertyDescriptor.ComponentType) && dependencyProperty != null && !dependencyProperty.DefaultMetadata.IsMetaProperty)
AuthoringOM\Design\ReferenceService.cs (1)
307if (baseType.IsAssignableFrom(reference.GetType()))
AuthoringOM\Design\SecondaryViewProvider.cs (5)
57(typeof(CompositeActivity).IsAssignableFrom(activityType) && 62(typeof(CompositeActivity).IsAssignableFrom(activityType) && 67(designer.Activity is ICompensatableActivity && typeof(CompositeActivity).IsAssignableFrom(activityType) && 72(Type.GetType(EventHandlingScopeRef).IsAssignableFrom(activityType) && 121if (activityType.IsAssignableFrom(activity.GetType()))
AuthoringOM\Design\Themes.cs (4)
735if (designerTheme != null && !themeAttrib.DesignerThemeType.IsAssignableFrom(designerTheme.GetType())) 965if (typeof(DesignerTheme).IsAssignableFrom(type)) 1607if (DesignerType != null && typeof(FreeformActivityDesigner).IsAssignableFrom(DesignerType)) 3361if (serializerType.IsAssignableFrom(typeof(WorkflowMarkupSerializer)))
AuthoringOM\Design\WinOEToolBoxItem.cs (1)
86if (typeof(IComponent).IsAssignableFrom(typeOfComponent))
AuthoringOM\Fault.cs (1)
61if (this.FaultType != null && !typeof(Exception).IsAssignableFrom(this.FaultType))
AuthoringOM\Serializer\ActivityCodeDomSerializationManager.cs (1)
205if (objectType.IsPrimitive || objectType.IsEnum || objectType == typeof(string) || typeof(Activity).IsAssignableFrom(objectType))
AuthoringOM\Serializer\ActivityMarkupSerializationProvider.cs (2)
16if (typeof(CompositeActivity).IsAssignableFrom(objectType)) 19if (typeof(ItemList<>).IsAssignableFrom(objectType))
AuthoringOM\Serializer\ActivitySurrogate.cs (1)
341if (typeof(Activity).IsAssignableFrom(this.type))
AuthoringOM\Serializer\ActivitySurrogateSelector.cs (10)
57if (typeof(Activity).IsAssignableFrom(type)) 61else if (typeof(ActivityExecutor).IsAssignableFrom(type)) 65else if (typeof(IDictionary<DependencyProperty, object>).IsAssignableFrom(type)) 69else if (typeof(XmlDocument).IsAssignableFrom(type)) 99else if (typeof(ActivityBind).IsAssignableFrom(type)) 105else if (typeof(DependencyObject).IsAssignableFrom(type)) 156!(typeof(ActivityBind).IsAssignableFrom(type)) && 157!(typeof(DependencyObject).IsAssignableFrom(type)) 172!(typeof(ActivityBind).IsAssignableFrom(type)) && 173!(typeof(DependencyObject).IsAssignableFrom(type)) &&
AuthoringOM\Serializer\CodeTypeReferenceSerializer.cs (1)
77if (!propertyType.IsAssignableFrom(typeof(CodeTypeReference)))
AuthoringOM\Serializer\CollectionMarkupSerializer.cs (4)
93if (typeof(Array).IsAssignableFrom(collectionType)) 96return (typeof(ICollection).IsAssignableFrom(collectionType) || 98(typeof(ICollection<>).IsAssignableFrom(collectionType.GetGenericTypeDefinition()) || 99typeof(IList<>).IsAssignableFrom(collectionType.GetGenericTypeDefinition()))));
AuthoringOM\Serializer\PropertySegmentSerializationProvider.cs (1)
17if (serializerType.IsAssignableFrom(typeof(WorkflowMarkupSerializer)))
AuthoringOM\Serializer\WorkflowMarkupSerializationManager.cs (3)
496else if (typeof(Color).IsAssignableFrom(objectType)) 498else if (typeof(Size).IsAssignableFrom(objectType)) 500else if (typeof(Point).IsAssignableFrom(objectType))
AuthoringOM\Serializer\WorkflowMarkupSerializationProvider.cs (1)
35if (typeof(IDictionary).IsAssignableFrom(objectType))
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (21)
1184|| typeof(Delegate).IsAssignableFrom(valueType) || typeof(IConvertible).IsAssignableFrom(valueType) 1198if (typeof(Delegate).IsAssignableFrom(value.GetType())) 1200else if (typeof(DateTime).IsAssignableFrom(value.GetType())) 1250else if (typeof(Delegate).IsAssignableFrom(propertyType)) 1267else if (typeof(Type).IsAssignableFrom(propertyType)) 1285else if (typeof(IConvertible).IsAssignableFrom(propertyType)) 1289else if (propertyType.IsAssignableFrom(value.GetType())) 1383if (!(obj is CodeObject) || !typeof(ICollection).IsAssignableFrom(property.PropertyType)) 1512if (propValue != null && propertyInfo.PropertyType.IsAssignableFrom(propValue.GetType())) 1622(value == null || pi.PropertyType.IsAssignableFrom(value.GetType()))) 1628else if (typeof(ICollection<string>).IsAssignableFrom(value.GetType())) 1754else if (typeof(IConvertible).IsAssignableFrom(type)) 1931if (isReadOnly && !typeof(ICollection<string>).IsAssignableFrom(propertyType)) 2021else if (typeof(ICollection<string>).IsAssignableFrom(memberValue.GetType())) 3043if (!this.contentProperty.PropertyType.IsAssignableFrom(content.GetType()) && typeof(string).IsAssignableFrom(content.GetType())) 3061else if (!contentProperty.PropertyType.IsAssignableFrom(content.GetType())) 3142return (typeof(MarkupExtension).IsAssignableFrom(type) || 3143typeof(System.Type).IsAssignableFrom(type) || 3144typeof(System.Array).IsAssignableFrom(type));
Shared\BasePropertyDescriptor.cs (1)
641if (baseConverterType != null && typeof(TypePropertyTypeConverter).IsAssignableFrom(baseConverterType))
Shared\CompModHelpers.cs (1)
754mismatch = (parameters[index].ParameterType == null) || (!parameters[index].ParameterType.IsAssignableFrom(types[index]));
System.Workflow.Runtime (12)
CorrelationToken.cs (1)
198if ((typeof(CompositeActivity).IsAssignableFrom(currentActivity.GetType())) && currentActivity.Enabled)
Hosting\DefaultWorkflowLoaderService.cs (1)
32if (!typeof(Activity).IsAssignableFrom(workflowType))
System\Activities\Statements\Interop.cs (3)
93if (typeof(System.Workflow.ComponentModel.Activity).IsAssignableFrom(value) 295if (!typeof(System.Workflow.ComponentModel.Activity).IsAssignableFrom(this.ActivityType)) 1006if (!typeof(System.Workflow.ComponentModel.Activity).IsAssignableFrom(interop.ActivityType))
System\Activities\Statements\InteropEnvironment.cs (1)
366if (activityConditionType.IsAssignableFrom(propertyInfo.PropertyType))
WorkflowRuntime.cs (6)
360if (!typeof(Activity).IsAssignableFrom(workflowType)) 390if (!typeof(Activity).IsAssignableFrom(workflowType)) 1499if (typeof(IServiceProvider).IsAssignableFrom(pi[0].ParameterType)) 1503else if (typeof(NameValueCollection).IsAssignableFrom(pi[0].ParameterType)) 1510if (typeof(IServiceProvider).IsAssignableFrom(pi[0].ParameterType) 1511&& typeof(NameValueCollection).IsAssignableFrom(pi[1].ParameterType))
System.WorkflowServices (10)
System\Workflow\Activities\Design\RichListBox.cs (2)
63if (!typeof(object).IsAssignableFrom(editableListItemType)) 87if (!typeof(object).IsAssignableFrom(editableListItemType))
System\Workflow\Activities\Design\ServiceOperationUIEditor.cs (1)
46if (!(allowedActivityType.IsAssignableFrom(foundActivity.GetType())))
System\Workflow\Activities\ServiceOperationHelpers.cs (4)
147if (typeof(ServiceContractAttribute).IsAssignableFrom(attribInfoAttrib.AttributeInfo.AttributeType)) 173if (typeof(OperationContractAttribute).IsAssignableFrom(attribInfoAttrib.AttributeInfo.AttributeType)) 222if (attributeType.IsAssignableFrom(currentAttribute.GetType())) 252if (attributeType.IsAssignableFrom(attribute.GetType()))
System\Workflow\Activities\ValidationHelper.cs (2)
1021if (!methodInfo.ReflectedType.IsAssignableFrom(contractType)) 1044if (typeof(ServiceContractAttribute).IsAssignableFrom(attribInfoAttrib.AttributeInfo.AttributeType))
System\Workflow\Runtime\CompiledWorkflowDefinitionContext.cs (1)
25if (!activityType.IsAssignableFrom(workflowType))
System.Xaml.Hosting (4)
System\Xaml\Hosting\Configuration\HandlerElementCollection.cs (1)
107if (handler.LoadXamlRootElementType().IsAssignableFrom(hostedXamlType))
System\Xaml\Hosting\XamlBuildProvider.cs (1)
159if (httpHandlerType != null && typeof(IXamlBuildProviderExtensionFactory).IsAssignableFrom(httpHandlerType))
System\Xaml\Hosting\XamlHttpHandlerFactory.cs (2)
254if (typeof(IHttpHandler).IsAssignableFrom(httpHandlerType)) 267else if (typeof(IHttpHandlerFactory).IsAssignableFrom(httpHandlerType))
System.Xml (61)
System\Xml\Schema\Preprocessor.cs (1)
312if (typeof(XmlSchema).IsAssignableFrom(returnType)) { //To handle XmlSchema and all its derived types
System\Xml\Serialization\CodeGenerator.cs (3)
1694else if (source.IsAssignableFrom(target)) { 1704else if (target.IsAssignableFrom(source)) { 1711else if (source.IsAssignableFrom(target)) {
System\Xml\Serialization\ImportContext.cs (3)
288if (typeof(XmlSchemaType).IsAssignableFrom(t)) { 405else if (typeof(XmlSchemaGroupBase).IsAssignableFrom(t)) { 433if (typeof(XmlSchemaAnnotated).IsAssignableFrom(t)) {
System\Xml\Serialization\Mappings.cs (4)
982if (needSchema && typeof(XmlSchemaType).IsAssignableFrom(getSchemaMethod.ReturnType)) 1054if (typeof(XmlSchemaType).IsAssignableFrom(getSchemaMethod.ReturnType)) 1136if (typeof(XmlSchemaType).IsAssignableFrom(getSchemaMethod.ReturnType)) { 1141else if (typeof(XmlQualifiedName).IsAssignableFrom(getSchemaMethod.ReturnType)) {
System\Xml\Serialization\SourceInfo.cs (4)
100if (get_Item == null && typeof(IList).IsAssignableFrom(varType)) 114else if ((elementType != null) && !(eType.IsAssignableFrom(elementType) || elementType.IsAssignableFrom(eType))) { 192System.Diagnostics.Debug.Assert(targetType == nullableType || targetType.IsAssignableFrom(nullableType.GetGenericArguments()[0]));
System\Xml\Serialization\TypeExtensions.cs (3)
27targetType.IsAssignableFrom(sourceType)) { 37targetType.IsAssignableFrom(method.ReturnType)) { 42parameters[0].ParameterType.IsAssignableFrom(sourceType)) {
System\Xml\Serialization\Types.cs (15)
725else if (typeof(IXmlSerializable).IsAssignableFrom(type)) { 742else if (typeof(ICollection).IsAssignableFrom(type) && !IsArraySegment(type)) { 776else if (typeof(XmlNode).IsAssignableFrom(type)) { 780if (typeof(XmlText).IsAssignableFrom(type)) 782else if (typeof(XmlElement).IsAssignableFrom(type)) 784else if (type.IsAssignableFrom(typeof(XmlAttribute))) 820if (typeof(IEnumerable).IsAssignableFrom(type) && !IsArraySegment(type)) { 917else if (typeof(ICollection).IsAssignableFrom(type)) 919else if (typeof(IEnumerable).IsAssignableFrom(type)) { 1052if (typeToBeReplaced.IsAssignableFrom(currentType)) 1112if (typeof(IEnumerable).IsAssignableFrom(type)) { 1115if (enumerator == null || !typeof(IEnumerator).IsAssignableFrom(enumerator.ReturnType)) { 1120if (enumerator != null && typeof(IEnumerator).IsAssignableFrom(enumerator.ReturnType)) { 1135if (enumerator == null || !typeof(IEnumerator).IsAssignableFrom(enumerator.ReturnType)) { 1161if (typeof(IDictionary).IsAssignableFrom(type)) {
System\Xml\Serialization\XmlReflectionImporter.cs (8)
438if (!(typeof(XmlQualifiedName).IsAssignableFrom(getMethod.ReturnType)) && !(typeof(XmlSchemaType).IsAssignableFrom(getMethod.ReturnType))) 1458Type targetType = typeof(IXmlSerializable).IsAssignableFrom(arrayElementType) ? arrayElementType : typeof(XmlNode).IsAssignableFrom(arrayElementType) ? arrayElementType : typeof(XmlElement); 1459if (!arrayElementType.IsAssignableFrom(targetType)) 1670Type targetType = typeof(IXmlSerializable).IsAssignableFrom(accessorType) ? accessorType : typeof(XmlNode).IsAssignableFrom(accessorType) ? accessorType : typeof(XmlElement); 1671if (!accessorType.IsAssignableFrom(targetType))
System\Xml\Serialization\XmlSchemaImporter.cs (2)
367if (!(desiredMappingType.IsAssignableFrom(mapping.GetType()))) 469if (mapping != null && desiredMappingType.IsAssignableFrom(mapping.GetType()))
System\Xml\Serialization\XmlSchemas.cs (2)
290if (typeof(XmlSchemaType).IsAssignableFrom(type)) { 292if (ret == null || !type.IsAssignableFrom(ret.GetType())) {
System\Xml\Serialization\XmlSerializationReader.cs (4)
1648if (itemType == null || currItemType.IsAssignableFrom(itemType)) { 1651else if (!itemType.IsAssignableFrom(currItemType)) { 3080if (structMapping.TypeDesc.Type != null && typeof(XmlSchemaObject).IsAssignableFrom(structMapping.TypeDesc.Type)) { 4487if (head.Type.IsAssignableFrom(derived.Type)) {
System\Xml\Serialization\XmlSerializationReaderILGen.cs (3)
1543if (structMapping.TypeDesc.Type != null && typeof(XmlSchemaObject).IsAssignableFrom(structMapping.TypeDesc.Type)) { 2834Debug.Assert(!localA.LocalType.IsGenericType || (localA.LocalType.GetGenericArguments().Length == 1 && localA.LocalType.GetGenericArguments()[0].IsAssignableFrom(elementType))); 3318if (head.Type.IsAssignableFrom(derived.Type)) {
System\Xml\Serialization\XmlSerializationWriter.cs (7)
318else if (typeof(XmlNode[]).IsAssignableFrom(t)){ 681if (typeof(XmlAttribute).IsAssignableFrom(node.GetType())) 713if (typeof(IXmlSerializable).IsAssignableFrom(type)) return new InvalidOperationException(Res.GetString(Res.XmlInvalidSerializable, type.FullName)); 1063while ((elementType.IsArray || typeof(IEnumerable).IsAssignableFrom(elementType)) && GetPrimitiveTypeName(elementType, false) == null) { 1139int arrayLength = typeof(ICollection).IsAssignableFrom(type) ? ((ICollection)o).Count : -1; 1221if (t.IsArray || typeof(IEnumerable).IsAssignableFrom(t)) { 2085if (mapping.TypeDesc.Type != null && typeof(XmlSchemaObject).IsAssignableFrom(mapping.TypeDesc.Type)) {
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
976if (mapping.TypeDesc.Type != null && typeof(XmlSchemaObject).IsAssignableFrom(mapping.TypeDesc.Type)) { 1449if (getEnumeratorMethod != null && typeof(IEnumerator).IsAssignableFrom(getEnumeratorMethod.ReturnType))
UIAutomationClient (2)
System\Windows\Automation\ItemContainerPattern.cs (1)
150|| (value != null && !expectedType.IsAssignableFrom(value.GetType()))))
System\Windows\Automation\PropertyCondition.cs (1)
150|| (val != null && !expectedType.IsAssignableFrom(val.GetType()))))
WindowsBase (51)
Base\MS\Internal\ComponentModel\AttachedPropertyMethodSelector.cs (1)
99if (!t.IsAssignableFrom(p.ParameterType))
Base\MS\Internal\ComponentModel\DependencyObjectProvider.cs (1)
48if (args.TypeChanged != null && typeof(DependencyObject).IsAssignableFrom(args.TypeChanged))
Base\MS\Internal\ComponentModel\DependencyPropertyKind.cs (1)
111if (_dp.OwnerType == _targetType || _dp.OwnerType.IsAssignableFrom(_targetType) || DependencyProperty.FromName(_dp.Name, _targetType) != _dp)
Base\MS\Internal\ComponentModel\DPCustomTypeDescriptor.cs (1)
331if (dp != null || typeof(DependencyObject).IsAssignableFrom(prop.ComponentType))
Base\System\Collections\ObjectModel\WeakReadOnlyCollection.cs (2)
187if(!(targetType.IsAssignableFrom(sourceType) || sourceType.IsAssignableFrom(targetType))) {
Base\System\Windows\DependencyObjectType.cs (2)
49if (!typeof(DependencyObject).IsAssignableFrom(systemType)) 65Debug.Assert(systemType != null && typeof(DependencyObject).IsAssignableFrom(systemType), "Invalid systemType argument");
Base\System\Windows\DependencyProperty.cs (3)
483if (!typeof(DependencyObject).IsAssignableFrom(forType)) 505if (!baseMetadata.GetType().IsAssignableFrom(typeMetadata.GetType())) 1145if (typeof(Freezable).IsAssignableFrom(propertyType))
Base\System\Windows\Markup\Primitives\MarkupProperty.cs (2)
59return (typeof(IList).IsAssignableFrom(propertyType) || 60typeof(IDictionary).IsAssignableFrom(propertyType) ||
Base\System\Windows\Markup\TypeConverterHelper.cs (38)
177else if (typeof(Int32).IsAssignableFrom(type)) 181else if (typeof(Int16).IsAssignableFrom(type)) 185else if (typeof(Int64).IsAssignableFrom(type)) 189else if (typeof(UInt32).IsAssignableFrom(type)) 193else if (typeof(UInt16).IsAssignableFrom(type)) 197else if (typeof(UInt64).IsAssignableFrom(type)) 201else if (typeof(Boolean).IsAssignableFrom(type)) 205else if (typeof(Double).IsAssignableFrom(type)) 209else if (typeof(Single).IsAssignableFrom(type)) 213else if (typeof(Byte).IsAssignableFrom(type)) 217else if (typeof(SByte).IsAssignableFrom(type)) 221else if (typeof(Char).IsAssignableFrom(type)) 225else if (typeof(Decimal).IsAssignableFrom(type)) 229else if (typeof(TimeSpan).IsAssignableFrom(type)) 233else if (typeof(Guid).IsAssignableFrom(type)) 237else if (typeof(String).IsAssignableFrom(type)) 241else if (typeof(CultureInfo).IsAssignableFrom(type)) 245else if (typeof(Type).IsAssignableFrom(type)) 249else if (typeof(DateTime).IsAssignableFrom(type)) 361else if (typeof(Int32).IsAssignableFrom(type)) 365else if (typeof(Int16).IsAssignableFrom(type)) 369else if (typeof(Int64).IsAssignableFrom(type)) 373else if (typeof(UInt32).IsAssignableFrom(type)) 377else if (typeof(UInt16).IsAssignableFrom(type)) 381else if (typeof(UInt64).IsAssignableFrom(type)) 385else if (typeof(Boolean).IsAssignableFrom(type)) 389else if (typeof(Double).IsAssignableFrom(type)) 393else if (typeof(Single).IsAssignableFrom(type)) 397else if (typeof(Byte).IsAssignableFrom(type)) 401else if (typeof(SByte).IsAssignableFrom(type)) 405else if (typeof(Char).IsAssignableFrom(type)) 409else if (typeof(Decimal).IsAssignableFrom(type)) 413else if (typeof(TimeSpan).IsAssignableFrom(type)) 417else if (typeof(Guid).IsAssignableFrom(type)) 421else if (typeof(String).IsAssignableFrom(type)) 425else if (typeof(CultureInfo).IsAssignableFrom(type)) 430else if (typeof(Type).IsAssignableFrom(type)) 440else if (typeof(DateTime).IsAssignableFrom(type))
XamlBuildTask (7)
Microsoft\Build\Tasks\Xaml\AttributeData.cs (5)
203if (typeof(Type).IsAssignableFrom(paramType.UnderlyingType)) 247typeof(Type).IsAssignableFrom(type); 261else if (typeof(Type).IsAssignableFrom(type)) 284if (typeof(Type).IsAssignableFrom(paramType.UnderlyingType)) 341Fx.Assert(!typeof(Type).IsAssignableFrom(type), "This method should not be called for Types");
Microsoft\Build\Tasks\Xaml\AttributeParameterData.cs (1)
53if (value != null && !type.UnderlyingType.IsAssignableFrom(value.GetType()))
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (1)
277else if (typeof(System.Type).IsAssignableFrom(paramInfo.Type.UnderlyingType))