C# Class Datamodel.Codecs.CodecUtilities

Helper methods for ICodec implementers.
Afficher le fichier Open project: Artfunkel/Datamodel.NET Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat void

MakeList() public static méthode

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
Résultat System.Collections.IList

MakeList() public static méthode

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
Résultat System.Collections.IList