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
Type | Name |
---|---|
<TXmlDto> | from |
System.IO.Stream | stream |
Type Parameters
TXmlDto
Compress<TXmlDto>(TXmlDto)
View Source
Declaration
public static byte[] Compress<TXmlDto>(TXmlDto from)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
<TXmlDto> | from |
Type Parameters
TXmlDto
GetWeakDataContract(Type)
View Source
Declaration
public static DataContractAttribute GetWeakDataContract(this Type type)
Returns
System.Runtime.Serialization.DataContractAttribute
Parameters
Type | Name |
---|---|
System.Type | type |
GetWeakDataMember(PropertyInfo)
View Source
Declaration
public static DataMemberAttribute GetWeakDataMember(this PropertyInfo pi)
Returns
System.Runtime.Serialization.DataMemberAttribute
Parameters
Type | Name |
---|---|
System.Reflection.PropertyInfo | pi |
GetWeakDataMember(FieldInfo)
View Source
Declaration
public static DataMemberAttribute GetWeakDataMember(this FieldInfo pi)
Returns
System.Runtime.Serialization.DataMemberAttribute
Parameters
Type | Name |
---|---|
System.Reflection.FieldInfo | pi |