public void Dispose() { if (m_nativeInstance != IntPtr.Zero) { TypeCollectionNative.Destroy(m_nativeInstance); m_nativeInstance = IntPtr.Zero; } }
public bool Load(string path) { if (!TypeCollectionNative.Load(m_nativeInstance, path)) { return(false); } return(true); }
public TypeCollection() { m_types = new List <Type>(); m_interfaces = new List <InterfaceType>(); m_structs = new List <StructType>(); m_arrays = new List <ArrayType>(); m_nativeInstance = TypeCollectionNative.Create(); }
public ArrayType MakeArray(Type baseType) { IntPtr typeHandle = TypeCollectionNative.MakeArray(m_nativeInstance, baseType.NativeInstance); return(GetTypeFromHandle(typeHandle) as ArrayType); }
public StructType FindStructByCrc(UInt16 typeCrc) { IntPtr typeHandle = TypeCollectionNative.FindStructByCrc(m_nativeInstance, typeCrc); return(GetTypeFromHandle(typeHandle) as StructType); }
public StructType FindStruct(string name, string referenceNamespace) { IntPtr typeHandle = TypeCollectionNative.FindStruct(m_nativeInstance, name, referenceNamespace); return(GetTypeFromHandle(typeHandle) as StructType); }
public InterfaceType FindInterfaceByCrc(UInt16 typeCrc) { IntPtr typeHandle = TypeCollectionNative.FindInterfaceByCrc(m_nativeInstance, typeCrc); return(GetTypeFromHandle(typeHandle) as InterfaceType); }