Add project files.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
//------------------------------------------------------------
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//------------------------------------------------------------
|
||||
using System;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace Compat.Runtime.Serialization
|
||||
{
|
||||
public class ExportOptions
|
||||
{
|
||||
private Collection<Type> knownTypes;
|
||||
private IDataContractSurrogate dataContractSurrogate;
|
||||
|
||||
public IDataContractSurrogate DataContractSurrogate
|
||||
{
|
||||
get => dataContractSurrogate;
|
||||
set => dataContractSurrogate = value;
|
||||
}
|
||||
|
||||
internal IDataContractSurrogate GetSurrogate()
|
||||
{
|
||||
return dataContractSurrogate;
|
||||
}
|
||||
|
||||
public Collection<Type> KnownTypes
|
||||
{
|
||||
get
|
||||
{
|
||||
if (knownTypes == null)
|
||||
{
|
||||
knownTypes = new Collection<Type>();
|
||||
}
|
||||
return knownTypes;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user