sdaiIsInstanceOfBN
sdaiIsInstanceOf(
instance,
sdaiGetEntity(
engiGetEntityModel(
sdaiGetInstanceType(
instance
)
),
entityName
)
);
Syntax
public const string enginedll = @"engine.dll"; [DllImport(enginedll, EntryPoint = "sdaiIsInstanceOfBN")] public static extern Int32 x86_sdaiIsInstanceOfBN(Int32 instance, string entityName); [DllImport(enginedll, EntryPoint = "sdaiIsInstanceOfBN")] public static extern Int32 x64_sdaiIsInstanceOfBN(Int64 instance, string entityName); public static Int32 sdaiIsInstanceOfBN(Int64 instance, string entityName) { if (IntPtr.Size == 4) { var _result = x86_sdaiIsInstanceOfBN((Int32)instance, entityName); return _result; } else { return x64_sdaiIsInstanceOfBN(instance, entityName); } } [DllImport(enginedll, EntryPoint = "sdaiIsInstanceOfBN")] public static extern Int32 x86_sdaiIsInstanceOfBN(Int32 instance, byte[] entityName); [DllImport(enginedll, EntryPoint = "sdaiIsInstanceOfBN")] public static extern Int32 x64_sdaiIsInstanceOfBN(Int64 instance, byte[] entityName); public static Int32 sdaiIsInstanceOfBN(Int64 instance, byte[] entityName) { if (IntPtr.Size == 4) { var _result = x86_sdaiIsInstanceOfBN((Int32)instance, entityName); return _result; } else { return x64_sdaiIsInstanceOfBN(instance, entityName); } }