本文整理汇总了C#中ModuleDefinition.HasImage方法的典型用法代码示例。如果您正苦于以下问题:C# ModuleDefinition.HasImage方法的具体用法?C# ModuleDefinition.HasImage怎么用?C# ModuleDefinition.HasImage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ModuleDefinition
的用法示例。
在下文中一共展示了ModuleDefinition.HasImage方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetHasMarshalInfo
public static bool GetHasMarshalInfo (
this IMarshalInfoProvider self,
ModuleDefinition module)
{
return module.HasImage ()
? module.Read (self, (provider, reader) => reader.HasMarshalInfo (provider))
: false;
}
示例2: GetMarshalInfo
public static MarshalInfo GetMarshalInfo (
this IMarshalInfoProvider self,
ModuleDefinition module)
{
return module.HasImage ()
? module.Read (self, (provider, reader) => reader.ReadMarshalInfo (provider))
: null;
}
示例3: GetHasGenericParameters
public static bool GetHasGenericParameters (
this IGenericParameterProvider self,
ModuleDefinition module)
{
return module.HasImage ()
? module.Read (self, (provider, reader) => reader.HasGenericParameters (provider))
: false;
}
示例4: GetCustomAttributes
public static Collection<CustomAttribute> GetCustomAttributes (
this ICustomAttributeProvider self,
ModuleDefinition module)
{
return module.HasImage ()
? module.Read (self, (provider, reader) => reader.ReadCustomAttributes (provider))
: new Collection<CustomAttribute> ();
}
示例5: GetGenericParameters
public static Collection<GenericParameter> GetGenericParameters (
this IGenericParameterProvider self,
ModuleDefinition module)
{
return module.HasImage ()
? module.Read (self, (provider, reader) => reader.ReadGenericParameters (provider))
: new Collection<GenericParameter> ();
}
示例6: GetHasCustomAttributes
public static bool GetHasCustomAttributes (
this ICustomAttributeProvider self,
ModuleDefinition module)
{
return module.HasImage ()
? module.Read (self, (provider, reader) => reader.HasCustomAttributes (provider))
: false;
}
示例7: ResolveConstant
public static void ResolveConstant (
this IConstantProvider self,
ref object constant,
ModuleDefinition module)
{
constant = module.HasImage ()
? module.Read (self, (provider, reader) => reader.ReadConstant (provider))
: Mixin.NoValue;
}
示例8: GetCustomAttributes
public static List<CustomAttribute> GetCustomAttributes (
this ICustomAttributeProvider self,
ref List<CustomAttribute> variable,
ModuleDefinition module)
{
return module.HasImage ()
? module.Read (ref variable, self, (provider, reader) => reader.ReadCustomAttributes (provider))
: variable = new List<CustomAttribute>();
}
示例9: GetGenericParameters
public static Collection<GenericParameter> GetGenericParameters (
this IGenericParameterProvider self,
ref Collection<GenericParameter> collection,
ModuleDefinition module)
{
return module.HasImage ()
? module.Read (ref collection, self, (provider, reader) => reader.ReadGenericParameters (provider))
: collection = new GenericParameterCollection (self);
}
示例10: GetMarshalInfo
public static MarshalInfo GetMarshalInfo(
this IMarshalInfoProvider self,
/*Telerik Authorship*/ ref MarshalInfo variable,
ModuleDefinition module)
{
/*Telerik Authorship*/
return module.HasImage ()
? module.Read (ref variable, self, (provider, reader) => reader.ReadMarshalInfo (provider))
: null;
}
示例11: ResolveConstant
public static void ResolveConstant (
this IConstantProvider self,
ref object constant,
ModuleDefinition module)
{
lock (module.SyncRoot) {
if (constant != Mixin.NotResolved)
return;
if (module.HasImage ())
constant = module.Read (self, (provider, reader) => reader.ReadConstant (provider));
else
constant = Mixin.NoValue;
}
}
示例12: GetSecurityDeclarations
public static Collection<SecurityDeclaration> GetSecurityDeclarations (
this ISecurityDeclarationProvider self,
ref Collection<SecurityDeclaration> variable,
ModuleDefinition module)
{
return module.HasImage ()
? module.Read (ref variable, self, (provider, reader) => reader.ReadSecurityDeclarations (provider))
: variable = new Collection<SecurityDeclaration>();
}
示例13: GetHasSecurityDeclarations
public static bool GetHasSecurityDeclarations (
this ISecurityDeclarationProvider self,
ModuleDefinition module)
{
return module.HasImage () && module.Read (self, (provider, reader) => reader.HasSecurityDeclarations (provider));
}