Skip to main content

PclExportExt

Assembly: ServiceStack.Text.dll
View Source
Declaration
public static class PclExportExt

Methods

CompressToStream<TXmlDto>(TXmlDto, Stream)

View Source
Declaration
public static void CompressToStream<TXmlDto>(TXmlDto from, Stream stream)
Parameters
TypeName
<TXmlDto>from
System.IO.Streamstream
Type Parameters
  • TXmlDto

Compress<TXmlDto>(TXmlDto)

View Source
Declaration
public static byte[] Compress<TXmlDto>(TXmlDto from)
Returns

System.Byte[]

Parameters
TypeName
<TXmlDto>from
Type Parameters
  • TXmlDto

GetWeakDataContract(Type)

View Source
Declaration
public static DataContractAttribute GetWeakDataContract(this Type type)
Returns

System.Runtime.Serialization.DataContractAttribute

Parameters
TypeName
System.Typetype

GetWeakDataMember(PropertyInfo)

View Source
Declaration
public static DataMemberAttribute GetWeakDataMember(this PropertyInfo pi)
Returns

System.Runtime.Serialization.DataMemberAttribute

Parameters
TypeName
System.Reflection.PropertyInfopi

GetWeakDataMember(FieldInfo)

View Source
Declaration
public static DataMemberAttribute GetWeakDataMember(this FieldInfo pi)
Returns

System.Runtime.Serialization.DataMemberAttribute

Parameters
TypeName
System.Reflection.FieldInfopi