C# Класс Datamodel.Codecs.CodecUtilities

Helper methods for ICodec implementers.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

AddDeferredAttribute() публичный статический Метод

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
Результат void

MakeList() публичный статический Метод

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
Результат System.Collections.IList

MakeList() публичный статический Метод

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
Результат System.Collections.IList