C# 클래스 Datamodel.Codecs.CodecUtilities

Helper methods for ICodec implementers.
파일 보기 프로젝트 열기: Artfunkel/Datamodel.NET 1 사용 예제들

공개 메소드들

메소드 설명
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