C# Class Datamodel.Codecs.CodecUtilities

Helper methods for ICodec implementers.
Mostrar archivo Open project: Artfunkel/Datamodel.NET Class Usage Examples

Public Methods

Method Description
AddDeferredAttribute ( Element elem, string key, long offset ) : void

Creates a new attribute on an Element. This method is intended for ICodec implementers and should not be directly called from any other code.

MakeList ( Type t, System source ) : System.Collections.IList

Creates a List<T> for the given Type, copying items the given IEnumerable

MakeList ( Type t, int count ) : System.Collections.IList

Creates a List<T> for the given Type with the given starting size.

Method Details

AddDeferredAttribute() public static method

Creates a new attribute on an Element. This method is intended for ICodec implementers and should not be directly called from any other code.
public static AddDeferredAttribute ( Element elem, string key, long offset ) : void
elem Element The Element to add to.
key string The name of the attribute. Must be unique on the Element.
offset long
return void

MakeList() public static method

Creates a List<T> for the given Type, copying items the given IEnumerable
public static MakeList ( Type t, System source ) : System.Collections.IList
t System.Type
source System
return System.Collections.IList

MakeList() public static method

Creates a List<T> for the given Type with the given starting size.
public static MakeList ( Type t, int count ) : System.Collections.IList
t System.Type
count int
return System.Collections.IList