Class StreamerFormat
Describes a format - a pair of readers/writers along with their capabilities - what types format supports natively
Inheritance
System.Object
StreamerFormat
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Azos.dll
public abstract class StreamerFormat
Properties
Declaration
public abstract Type ReaderType { get; }
Property Value
Type |
Description |
System.Type |
|
Declaration
public abstract Type WriterType { get; }
Property Value
Type |
Description |
System.Type |
|
Methods
GetReadingStreamer(Encoding)
Makes new reader instance
Declaration
public abstract ReadingStreamer GetReadingStreamer(Encoding encoding = null)
Parameters
Type |
Name |
Description |
System.Text.Encoding |
encoding |
|
Returns
Returns a method info for reading a certain ref type for this format or null if type is not supported
Declaration
public abstract MethodInfo GetReadMethodForRefType(Type t)
Parameters
Type |
Name |
Description |
System.Type |
t |
|
Returns
Type |
Description |
System.Reflection.MethodInfo |
|
Returns a method info for reading a certain value type for this format or null if type is not supported
Declaration
public abstract MethodInfo GetReadMethodForType(Type t)
Parameters
Type |
Name |
Description |
System.Type |
t |
|
Returns
Type |
Description |
System.Reflection.MethodInfo |
|
Returns a method info for writing a certain ref type for this format or null if type is not supported
Declaration
public abstract MethodInfo GetWriteMethodForRefType(Type t)
Parameters
Type |
Name |
Description |
System.Type |
t |
|
Returns
Type |
Description |
System.Reflection.MethodInfo |
|
Returns a method info for writing a certain value type for this format or null if type is not supported
Declaration
public abstract MethodInfo GetWriteMethodForType(Type t)
Parameters
Type |
Name |
Description |
System.Type |
t |
|
Returns
Type |
Description |
System.Reflection.MethodInfo |
|
GetWritingStreamer(Encoding)
Makes new writer instance
Declaration
public abstract WritingStreamer GetWritingStreamer(Encoding encoding = null)
Parameters
Type |
Name |
Description |
System.Text.Encoding |
encoding |
|
Returns
Returns true when the supplied ref type is natively supported by format
Declaration
public abstract bool IsRefTypeSupported(Type t)
Parameters
Type |
Name |
Description |
System.Type |
t |
|
Returns
Type |
Description |
System.Boolean |
|
Returns true when the supplied type is natively supported by format
Declaration
public abstract bool IsTypeSupported(Type t)
Parameters
Type |
Name |
Description |
System.Type |
t |
|
Returns
Type |
Description |
System.Boolean |
|
Extension Methods