mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Adding reference source for System.ComponentModel.DataAnnotations System.IdentityModel System.IdentityModel.Selectors System.Numerics System.Runtime.Caching System.Runtime.Serialization
41 lines
1.0 KiB
C#
41 lines
1.0 KiB
C#
//------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//------------------------------------------------------------
|
|
|
|
namespace System.Runtime.Serialization
|
|
{
|
|
using System.Security;
|
|
using System.Security.Permissions;
|
|
using System.Collections.ObjectModel;
|
|
|
|
public class ExportOptions
|
|
{
|
|
Collection<Type> knownTypes;
|
|
IDataContractSurrogate dataContractSurrogate;
|
|
|
|
public IDataContractSurrogate DataContractSurrogate
|
|
{
|
|
get { return dataContractSurrogate; }
|
|
set { dataContractSurrogate = value; }
|
|
}
|
|
|
|
internal IDataContractSurrogate GetSurrogate()
|
|
{
|
|
return dataContractSurrogate;
|
|
}
|
|
|
|
public Collection<Type> KnownTypes
|
|
{
|
|
get
|
|
{
|
|
if (knownTypes == null)
|
|
{
|
|
knownTypes = new Collection<Type>();
|
|
}
|
|
return knownTypes;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|