2 overrides of IsSerializable
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
199
public sealed override bool
IsSerializable
=> throw new NotSupportedException(SR.NotSupported_SignatureType);
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
115
public override bool
IsSerializable
38 references to IsSerializable
BinaryFormatTests (1)
FormatTests\FormattedObject\BinaryFormattedTypes.cs (1)
18
bool serializable = type.
IsSerializable
;
dotnet-svcutil-lib (2)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
757
return type == Globals.TypeOfDBNull || type.
IsSerializable
;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (1)
502
return (typeInfo.
IsSerializable
||
Microsoft.Build (2)
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1119
if (!e.GetType().GetTypeInfo().
IsSerializable
&& e is not IExtendedBuildEventArgs)
Instance\TaskFactoryLoggingHost.cs (1)
343
if (!e.GetType().GetTypeInfo().
IsSerializable
&&
MSBuild (1)
OutOfProcTaskHostNode.cs (1)
1198
if (!e.GetType().GetTypeInfo().
IsSerializable
&& e is not IExtendedBuildEventArgs)
MSBuildTaskHost (1)
OutOfProcTaskHostNode.cs (1)
1198
if (!e.GetType().GetTypeInfo().
IsSerializable
&& e is not IExtendedBuildEventArgs)
PresentationCore.Tests (1)
TestUtilities\BinaryFormatTestExtensions.cs (1)
41
bool serializable = type.
IsSerializable
;
PresentationFramework (3)
System\Windows\Controls\Frame.cs (1)
1198
Debug.Assert(JournalEntry.GetType().
IsSerializable
);
System\Windows\Navigation\Journal.cs (1)
464
Debug.Assert(je.GetType().
IsSerializable
);
System\Windows\Navigation\NavigationService.cs (1)
3225
if (!type.
IsSerializable
)
System.Private.DataContractSerialization (10)
System\Runtime\Serialization\ClassDataContract.cs (3)
332
if (type.
IsSerializable
)
641
if (baseType != null && !(baseType.
IsSerializable
&& Globals.TypeOfISerializable.IsAssignableFrom(baseType)))
1054
_isNonAttributedType = !type.
IsSerializable
&& !_hasDataContract && IsNonAttributedTypeValidForSerialization(type);
System\Runtime\Serialization\CollectionDataContract.cs (4)
917
if (type.
IsSerializable
|| type.IsDefined(Globals.TypeOfDataContractAttribute, false))
1031
bool createContractWithException = isBaseTypeCollection && !type.
IsSerializable
;
1115
if (type.
IsSerializable
)
1179
if (type.
IsSerializable
|| skipIfReadOnlyContract)
System\Runtime\Serialization\DataContract.cs (2)
475
if (!type.
IsSerializable
&& !type.IsDefined(Globals.TypeOfDataContractAttribute, false) && !ClassDataContract.IsNonAttributedTypeValidForSerialization(type))
1098
type.
IsSerializable
||
System\Runtime\Serialization\DataContractSet.cs (1)
414
type.
IsSerializable
||
System.Private.Windows.Core (2)
System\Private\Windows\BinaryFormat\Deserializer\ClassRecordDeserializer.cs (1)
37
if (!type.
IsSerializable
&& surrogate is null)
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (1)
288
_ when format == DataFormatNames.Serializable || data is ISerializable || data.GetType().
IsSerializable
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
117
get { return _typeInfo.
IsSerializable
; }
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\Deserializer\ClassRecordDeserializer.cs (1)
38
if (!type.
IsSerializable
&& surrogate is null)
System.Runtime.Serialization.Formatters (2)
System\Runtime\Serialization\FormatterServices.cs (2)
34
if (!type.
IsSerializable
)
56
if (!parentType.
IsSerializable
)
System.Windows.Forms (3)
System\Resources\ResXDataNode.cs (2)
86
if (value is not null && !valueType.
IsSerializable
)
240
if (value is not null && !valueType.
IsSerializable
)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
2085
if (_userData is not null && _userData.GetType().
IsSerializable
)
System.Windows.Forms.Design (7)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
545
if (md._member is PropertyDescriptor prop && prop.PropertyType.
IsSerializable
)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
1909
if (GetReflectionTypeHelper(manager, value).
IsSerializable
&& (value as IComponent)?.Site is null)
2539
if (value is null || value.GetType().
IsSerializable
)
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
373
if (!serialized && originalCollection.GetType().
IsSerializable
)
System\ComponentModel\Design\Serialization\LocalizationCodeDomSerializer.cs (1)
69
bool isSerializable = value is null || GetReflectionTypeHelper(manager, value).
IsSerializable
;
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (2)
519
if (value is not null && (!value.GetType().
IsSerializable
))
604
if (value is not null && (!value.GetType().
IsSerializable
))
System.Windows.Forms.Primitives.TestUtilities (1)
System\Windows\Forms\BinaryFormat\BinaryFormatTestExtensions.cs (1)
20
bool serializable = type.
IsSerializable
;