當前位置: 首頁>>代碼示例>>C#>>正文


C# ModuleDefinition.Read方法代碼示例

本文整理匯總了C#中Mono.Cecil.ModuleDefinition.Read方法的典型用法代碼示例。如果您正苦於以下問題:C# ModuleDefinition.Read方法的具體用法?C# ModuleDefinition.Read怎麽用?C# ModuleDefinition.Read使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Mono.Cecil.ModuleDefinition的用法示例。


在下文中一共展示了ModuleDefinition.Read方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: GetHasGenericParameters

		public static bool GetHasGenericParameters (
			this IGenericParameterProvider self,
			/*Telerik Authorship*/ ref bool? variable,
			ModuleDefinition module)
		{
			return module.HasImage () && module.Read (ref variable, self, (provider, reader) => reader.HasGenericParameters (provider)) == true;
		}
開發者ID:besturn,項目名稱:JustDecompileEngine,代碼行數:7,代碼來源:IGenericParameterProvider.cs

示例2: GetHasCustomAttributes

        public static bool GetHasCustomAttributes(
			this ICustomAttributeProvider self,
            /*Telerik Authorship*/ ref bool? variable,
			ModuleDefinition module)
        {
            return module.HasImage () && module.Read (ref variable, self, (provider, reader) => reader.HasCustomAttributes (provider)) == true;
        }
開發者ID:juancarlosbaezpozos,項目名稱:JustDecompileEngine,代碼行數:7,代碼來源:ICustomAttributeProvider.cs

示例3: GetHasCustomAttributes

		public static bool GetHasCustomAttributes (
			this ICustomAttributeProvider self,
			ModuleDefinition module)
		{
			return module.HasImage ()
				? module.Read (self, (provider, reader) => reader.HasCustomAttributes (provider))
				: false;
		}
開發者ID:constructor-igor,項目名稱:cudafy,代碼行數:8,代碼來源:ICustomAttributeProvider.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:n017,項目名稱:Confuser,代碼行數:8,代碼來源:ICustomAttributeProvider.cs

示例5: GetHasGenericParameters

		public static bool GetHasGenericParameters (
			this IGenericParameterProvider self,
			ModuleDefinition module)
		{
			return module.HasImage ()
				? module.Read (self, (provider, reader) => reader.HasGenericParameters (provider))
				: false;
		}
開發者ID:JustasB,項目名稱:cudafy,代碼行數:8,代碼來源:IGenericParameterProvider.cs

示例6: 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:yayanyang,項目名稱:monodevelop,代碼行數:8,代碼來源:IGenericParameterProvider.cs

示例7: 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:XQuantumForceX,項目名稱:Reflexil,代碼行數:9,代碼來源:IGenericParameterProvider.cs

示例8: GetCustomAttributes

 public static Collection<CustomAttribute> GetCustomAttributes(
     ICustomAttributeProvider self,
     ref Collection<CustomAttribute> variable,
     ModuleDefinition module)
 {
     return Mixin.HasImage(module)
         ? module.Read(ref variable, self, (provider, reader) => reader.ReadCustomAttributes(provider))
         : variable = new Collection<CustomAttribute>();
 }
開發者ID:qq1792,項目名稱:LSharp,代碼行數:9,代碼來源:ICustomAttributeProvider.cs

示例9: GetCustomAttributes

        public static Collection<CustomAttribute> GetCustomAttributes(
			this ICustomAttributeProvider self,
			/*Telerik Authorship*/ ref Collection<CustomAttribute> variable,
			ModuleDefinition module)
        {
            /*Telerik Authorship*/
            return module.HasImage ()
                ? module.Read (ref variable, self, (provider, reader) => reader.ReadCustomAttributes (provider))
                : variable = new Collection<CustomAttribute>();
        }
開發者ID:juancarlosbaezpozos,項目名稱:JustDecompileEngine,代碼行數:10,代碼來源:ICustomAttributeProvider.cs

示例10: ResolveConstant

        public static void ResolveConstant(
			this IConstantProvider self,
			/*Telerik Authorship*/ ref ConstantValue constant,
			ModuleDefinition module)
        {
            /*Telerik Authorship*/
            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:Feng2012,項目名稱:JustDecompileEngine,代碼行數:15,代碼來源:IConstantProvider.cs

示例11: ResolveConstant

        public static void ResolveConstant(
			this IConstantProvider self,
			out object constant,
			out ElementType element_type,
			ModuleDefinition module)
        {
            if (module.HasImage ()) {
                ElementType etype = 0;
                constant = module.Read (self, (provider, reader) => reader.ReadConstant (provider, out etype));
                element_type = etype;
            }
            else {
                constant = Mixin.NoValue;
                element_type = ElementType.NotInitialized;
            }
        }
開發者ID:hjlfmy,項目名稱:cecil,代碼行數:16,代碼來源:IConstantProvider.cs

示例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>();
		}
開發者ID:Gobiner,項目名稱:ILSpy,代碼行數:9,代碼來源:SecurityDeclaration.cs

示例13: GetHasSecurityDeclarations

		public static bool GetHasSecurityDeclarations (
			this ISecurityDeclarationProvider self,
			ModuleDefinition module)
		{
			return module.HasImage () && module.Read (self, (provider, reader) => reader.HasSecurityDeclarations (provider));
		}
開發者ID:Gobiner,項目名稱:ILSpy,代碼行數:6,代碼來源:SecurityDeclaration.cs

示例14: GetHasSecurityDeclarations

        public static bool GetHasSecurityDeclarations(
			this ISecurityDeclarationProvider self,
			/*Telerik Authorship*/ ref bool? variable,
			ModuleDefinition module)
        {
            return module.HasImage () && module.Read (ref variable, self, (provider, reader) => reader.HasSecurityDeclarations (provider)) == true;
        }
開發者ID:juancarlosbaezpozos,項目名稱:JustDecompileEngine,代碼行數:7,代碼來源:SecurityDeclaration.cs

示例15: GetHasGenericParameters

 public static bool GetHasGenericParameters(
     IGenericParameterProvider self,
     ModuleDefinition module)
 {
     return Mixin.HasImage(module) && module.Read(self, (provider, reader) => reader.HasGenericParameters(provider));
 }
開發者ID:FreshBirdZhe,項目名稱:LSharp,代碼行數:6,代碼來源:IGenericParameterProvider.cs


注:本文中的Mono.Cecil.ModuleDefinition.Read方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。