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