当前位置: 首页>>代码示例>>C#>>正文


C# ModuleDefinition.Read方法代码示例

本文整理汇总了C#中ModuleDefinition.Read方法的典型用法代码示例。如果您正苦于以下问题:C# ModuleDefinition.Read方法的具体用法?C# ModuleDefinition.Read怎么用?C# ModuleDefinition.Read使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ModuleDefinition的用法示例。


在下文中一共展示了ModuleDefinition.Read方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetHasMarshalInfo

		public static bool GetHasMarshalInfo (
			this IMarshalInfoProvider self,
			ModuleDefinition module)
		{
			return module.HasImage ()
				? module.Read (self, (provider, reader) => reader.HasMarshalInfo (provider))
				: false;
		}
开发者ID:thunder176,项目名称:HeuristicLab,代码行数:8,代码来源:IMarshalInfoProvider.cs

示例2: GetMarshalInfo

		public static MarshalInfo GetMarshalInfo (
			this IMarshalInfoProvider self,
			ModuleDefinition module)
		{
			return module.HasImage ()
				? module.Read (self, (provider, reader) => reader.ReadMarshalInfo (provider))
				: null;
		}
开发者ID:thunder176,项目名称:HeuristicLab,代码行数:8,代码来源:IMarshalInfoProvider.cs

示例3: GetHasGenericParameters

		public static bool GetHasGenericParameters (
			this IGenericParameterProvider self,
			ModuleDefinition module)
		{
			return module.HasImage ()
				? module.Read (self, (provider, reader) => reader.HasGenericParameters (provider))
				: false;
		}
开发者ID:BGCX261,项目名称:zoom-decompiler-hg-to-git,代码行数:8,代码来源:IGenericParameterProvider.cs

示例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> ();
		}
开发者ID:fugaku,项目名称:scriptsharp,代码行数:8,代码来源:ICustomAttributeProvider.cs

示例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> ();
		}
开发者ID:fugaku,项目名称:scriptsharp,代码行数:8,代码来源:IGenericParameterProvider.cs

示例6: GetHasCustomAttributes

		public static bool GetHasCustomAttributes (
			this ICustomAttributeProvider self,
			ModuleDefinition module)
		{
			return module.HasImage ()
				? module.Read (self, (provider, reader) => reader.HasCustomAttributes (provider))
				: false;
		}
开发者ID:fugaku,项目名称:scriptsharp,代码行数:8,代码来源:ICustomAttributeProvider.cs

示例7: GetMarshalInfo

 public static MarshalInfo GetMarshalInfo(
     IMarshalInfoProvider self,
     ref MarshalInfo variable,
     ModuleDefinition module)
 {
     return Mixin.HasImage(module)
         ? module.Read(ref variable, self, (provider, reader) => reader.ReadMarshalInfo(provider))
         : null;
 }
开发者ID:qq1792,项目名称:LSharp,代码行数:9,代码来源:IMarshalInfoProvider.cs

示例8: 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;
		}
开发者ID:0xb1dd1e,项目名称:cecil,代码行数:9,代码来源:IConstantProvider.cs

示例9: 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>();
		}
开发者ID:BGCX261,项目名称:zoom-decompiler-hg-to-git,代码行数:9,代码来源:ICustomAttributeProvider.cs

示例10: 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);
		}
开发者ID:mayuki,项目名称:Inazuma,代码行数:9,代码来源:IGenericParameterProvider.cs

示例11: 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;
        }
开发者ID:is00hcw,项目名称:JustDecompileEngine,代码行数:10,代码来源:IMarshalInfoProvider.cs

示例12: 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;
			}
		}
开发者ID:JustasB,项目名称:cudafy,代码行数:14,代码来源:IConstantProvider.cs

示例13: GetHasMarshalInfo

 public static bool GetHasMarshalInfo(
     IMarshalInfoProvider self,
     ModuleDefinition module)
 {
     return Mixin.HasImage(module) && module.Read(self, (provider, reader) => reader.HasMarshalInfo(provider));
 }
开发者ID:qq1792,项目名称:LSharp,代码行数:6,代码来源:IMarshalInfoProvider.cs

示例14: 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>();
		}
开发者ID:mayuki,项目名称:Inazuma,代码行数:9,代码来源:SecurityDeclaration.cs

示例15: GetHasSecurityDeclarations

		public static bool GetHasSecurityDeclarations (
			this ISecurityDeclarationProvider self,
			ModuleDefinition module)
		{
			return module.HasImage () && module.Read (self, (provider, reader) => reader.HasSecurityDeclarations (provider));
		}
开发者ID:mayuki,项目名称:Inazuma,代码行数:6,代码来源:SecurityDeclaration.cs


注:本文中的ModuleDefinition.Read方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。