本文整理汇总了C#中System.Reflection.ConstArray类的典型用法代码示例。如果您正苦于以下问题:C# ConstArray类的具体用法?C# ConstArray怎么用?C# ConstArray使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ConstArray类属于System.Reflection命名空间,在下文中一共展示了ConstArray类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: GetMarshalAs
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 num;
int num2;
int num3;
_GetMarshalAs(nativeType.Signature, nativeType.Length, out num, out num2, out safeArrayUserDefinedSubType, out num3, out sizeParamIndex, out sizeConst, out marshalType, out marshalCookie, out iidParamIndex);
unmanagedType = (UnmanagedType) num;
safeArraySubType = (VarEnum) num2;
arraySubType = (UnmanagedType) num3;
}
开发者ID:randomize,项目名称:VimConfig,代码行数:10,代码来源:MetadataImport.cs
示例2: ParseAttributeArguments
internal static void ParseAttributeArguments(ConstArray attributeBlob, ref CustomAttributeCtorParameter[] customAttributeCtorParameters, ref CustomAttributeNamedParameter[] customAttributeNamedParameters, RuntimeModule customAttributeModule)
{
if (customAttributeModule == null)
{
throw new ArgumentNullException("customAttributeModule");
}
if ((customAttributeCtorParameters.Length != 0) || (customAttributeNamedParameters.Length != 0))
{
ParseAttributeArguments(attributeBlob.Signature, attributeBlob.Length, ref customAttributeCtorParameters, ref customAttributeNamedParameters, (RuntimeAssembly) customAttributeModule.Assembly);
}
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:11,代码来源:CustomAttributeEncodedArgument.cs
示例3: ParseAttributeArguments
internal static unsafe void ParseAttributeArguments(ConstArray attributeBlob, ref CustomAttributeCtorParameter[] customAttributeCtorParameters, ref CustomAttributeNamedParameter[] customAttributeNamedParameters, Module customAttributeModule)
{
if (customAttributeModule == null)
{
throw new ArgumentNullException("customAttributeModule");
}
if (customAttributeNamedParameters == null)
{
customAttributeNamedParameters = new CustomAttributeNamedParameter[0];
}
CustomAttributeCtorParameter[] parameterArray = customAttributeCtorParameters;
CustomAttributeNamedParameter[] customAttributeTypedArgument = customAttributeNamedParameters;
ParseAttributeArguments(attributeBlob.Signature, attributeBlob.Length, ref parameterArray, ref customAttributeTypedArgument, (IntPtr) customAttributeModule.Assembly.AssemblyHandle.Value);
customAttributeCtorParameters = parameterArray;
customAttributeNamedParameters = customAttributeTypedArgument;
}
开发者ID:randomize,项目名称:VimConfig,代码行数:16,代码来源:CustomAttributeEncodedArgument.cs
示例4: GetSignatureFromToken
[System.Security.SecurityCritical] // auto-generated
public ConstArray GetSignatureFromToken(int token)
{
ConstArray signature = new ConstArray();
_GetSignatureFromToken(m_metadataImport2, token, ref signature);
return signature;
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:9,代码来源:mdimport.cs
示例5: GetSigOfMethodDef
[System.Security.SecurityCritical] // auto-generated
public ConstArray GetSigOfMethodDef(int methodToken)
{
ConstArray signature = new ConstArray();
_GetSigOfMethodDef(m_metadataImport2, methodToken, ref signature);
return signature;
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:9,代码来源:mdimport.cs
示例6: _GetSignatureFromToken
private static extern void _GetSignatureFromToken(IntPtr scope,
int methodToken,
ref ConstArray signature);
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:3,代码来源:mdimport.cs
示例7: GetSigOfMethodDef
public ConstArray GetSigOfMethodDef(int methodToken)
{
ConstArray signature = new ConstArray();
_GetSigOfMethodDef(this.m_metadataImport2, out MetadataArgs.Skip, methodToken, ref signature);
return signature;
}
开发者ID:randomize,项目名称:VimConfig,代码行数:6,代码来源:MetadataImport.cs
示例8: GetPropertyProps
[System.Security.SecurityCritical] // auto-generated
public unsafe void GetPropertyProps(int mdToken, out void* name, out PropertyAttributes propertyAttributes, out ConstArray signature)
{
int _propertyAttributes;
void* _name;
_GetPropertyProps(m_metadataImport2, mdToken, &_name, out _propertyAttributes, out signature);
name = _name;
propertyAttributes = (PropertyAttributes)_propertyAttributes;
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:9,代码来源:mdimport.cs
示例9: _GetCustomAttributeProps
private static extern void _GetCustomAttributeProps(IntPtr scope,
int customAttributeToken,
out int constructorToken,
out ConstArray signature);
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:4,代码来源:mdimport.cs
示例10: _GetFieldMarshal
private static extern void _GetFieldMarshal(IntPtr scope,
int fieldToken,
ref ConstArray fieldMarshal);
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:3,代码来源:mdimport.cs
示例11: _GetFieldMarshal
private static extern void _GetFieldMarshal(IntPtr scope, out MetadataArgs.SkipAddresses skipAddresses, int fieldToken, ref ConstArray fieldMarshal);
开发者ID:randomize,项目名称:VimConfig,代码行数:1,代码来源:MetadataImport.cs
示例12: GetFieldMarshal
public ConstArray GetFieldMarshal(int fieldToken)
{
ConstArray fieldMarshal = new ConstArray();
_GetFieldMarshal(this.m_metadataImport2, out MetadataArgs.Skip, fieldToken, ref fieldMarshal);
return fieldMarshal;
}
开发者ID:randomize,项目名称:VimConfig,代码行数:6,代码来源:MetadataImport.cs
示例13: _GetCustomAttributeProps
private static extern void _GetCustomAttributeProps(IntPtr scope, out MetadataArgs.SkipAddresses skipAddresses, int customAttributeToken, out int constructorToken, out ConstArray signature);
开发者ID:randomize,项目名称:VimConfig,代码行数:1,代码来源:MetadataImport.cs
示例14: _GetPropertyProps
private static extern unsafe void _GetPropertyProps(IntPtr scope, out MetadataArgs.SkipAddresses skipAddresses, int mdToken, void** name, out int propertyAttributes, out ConstArray signature);
开发者ID:randomize,项目名称:VimConfig,代码行数:1,代码来源:MetadataImport.cs
示例15: _GetMemberRefProps
private static extern void _GetMemberRefProps(IntPtr scope, out MetadataArgs.SkipAddresses skipAddresses, int memberTokenRef, out ConstArray signature);
开发者ID:randomize,项目名称:VimConfig,代码行数:1,代码来源:MetadataImport.cs
示例16: GetSignatureFromToken
public ConstArray GetSignatureFromToken(int token)
{
ConstArray signature = new ConstArray();
_GetSignatureFromToken(this.m_metadataImport2, out MetadataArgs.Skip, token, ref signature);
return signature;
}
开发者ID:randomize,项目名称:VimConfig,代码行数:6,代码来源:MetadataImport.cs
示例17: _GetSignatureFromToken
private static extern void _GetSignatureFromToken(IntPtr scope, out MetadataArgs.SkipAddresses skipAddresses, int methodToken, ref ConstArray signature);
开发者ID:randomize,项目名称:VimConfig,代码行数:1,代码来源:MetadataImport.cs
示例18: _GetMemberRefProps
private static extern void _GetMemberRefProps(IntPtr scope,
int memberTokenRef,
out ConstArray signature);
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:3,代码来源:mdimport.cs
示例19: ParseAttributeArguments
[System.Security.SecurityCritical] // auto-generated
internal static void ParseAttributeArguments(ConstArray attributeBlob,
ref CustomAttributeCtorParameter[] customAttributeCtorParameters,
ref CustomAttributeNamedParameter[] customAttributeNamedParameters,
RuntimeModule customAttributeModule)
{
if (customAttributeModule == null)
throw new ArgumentNullException("customAttributeModule");
Contract.EndContractBlock();
Contract.Assert(customAttributeCtorParameters != null);
Contract.Assert(customAttributeNamedParameters != null);
if (customAttributeCtorParameters.Length != 0 || customAttributeNamedParameters.Length != 0)
{
unsafe
{
ParseAttributeArguments(
attributeBlob.Signature,
(int)attributeBlob.Length,
ref customAttributeCtorParameters,
ref customAttributeNamedParameters,
(RuntimeAssembly)customAttributeModule.Assembly);
}
}
}
开发者ID:enavro,项目名称:coreclr,代码行数:26,代码来源:CustomAttribute.cs
示例20: GetMemberRefProps
[System.Security.SecurityCritical] // auto-generated
public ConstArray GetMemberRefProps(int memberTokenRef)
{
ConstArray signature = new ConstArray();
_GetMemberRefProps(m_metadataImport2, memberTokenRef, out signature);
return signature;
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:9,代码来源:mdimport.cs
注:本文中的System.Reflection.ConstArray类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论