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