_GetMarshalAs() private method

private _GetMarshalAs ( IntPtr pNativeType, int cNativeType, int &unmanagedType, int &safeArraySubType, string &safeArrayUserDefinedSubType, int &arraySubType, int &sizeParamIndex, int &sizeConst, string &marshalType, string &marshalCookie, int &iidParamIndex ) : void
pNativeType System.IntPtr
cNativeType int
unmanagedType int
safeArraySubType int
safeArrayUserDefinedSubType string
arraySubType int
sizeParamIndex int
sizeConst int
marshalType string
marshalCookie string
iidParamIndex int
return void
Exemplo n.º 1
0
        internal static void GetMarshalAs(ConstArray nativeType, out UnmanagedType unmanagedType, out VarEnum safeArraySubType, out string safeArrayUserDefinedSubType, out UnmanagedType arraySubType, out int sizeParamIndex, out int sizeConst, out string marshalType, out string marshalCookie, out int iidParamIndex)
        {
            int unmanagedType1;
            int safeArraySubType1;
            int arraySubType1;

            MetadataImport._GetMarshalAs(nativeType.Signature, nativeType.Length, out unmanagedType1, out safeArraySubType1, out safeArrayUserDefinedSubType, out arraySubType1, out sizeParamIndex, out sizeConst, out marshalType, out marshalCookie, out iidParamIndex);
            unmanagedType    = (UnmanagedType)unmanagedType1;
            safeArraySubType = (VarEnum)safeArraySubType1;
            arraySubType     = (UnmanagedType)arraySubType1;
        }