• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ManifestResourceAttributes类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ManifestResourceAttributes的典型用法代码示例。如果您正苦于以下问题:C# ManifestResourceAttributes类的具体用法?C# ManifestResourceAttributes怎么用?C# ManifestResourceAttributes使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ManifestResourceAttributes类属于命名空间,在下文中一共展示了ManifestResourceAttributes类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Read

 public void Read(ClrModuleReader reader)
 {
     this.Offset = reader.Binary.ReadUInt32();
     this.Flags = (ManifestResourceAttributes)reader.Binary.ReadUInt32();
     this.Name = reader.ReadString();
     this.Implementation = reader.ReadCodedIndex<Implementation>();
 }
开发者ID:BGCX261,项目名称:zoompe-git,代码行数:7,代码来源:ManifestResourceEntry.cs


示例2: LoadData

		private void LoadData(CLIFile pFile)
		{
			Offset = pFile.ReadUInt32();
			Flags = (ManifestResourceAttributes)pFile.ReadUInt32();
			Name = pFile.ReadStringHeap(pFile.ReadHeapIndex(HeapOffsetSizes.Strings32Bit));
			Implementation.LoadData(pFile);
		}
开发者ID:carriercomm,项目名称:Proton-1,代码行数:7,代码来源:ManifestResourceData.cs


示例3: LinkedResource

 public LinkedResource(string name, ManifestResourceAttributes flags, string resourceFileName, byte[] hash)
     : base(name, flags)
 {
     this.resourceFileName = name;
     this.hash = hash;
     this.hashSource = LinkedResourceHashSource.Explicit;
 }
开发者ID:poizan42,项目名称:cecil,代码行数:7,代码来源:LinkedResource.cs


示例4: ManifestResourceRow

        /// <summary>
        /// Initializes a new instance of the <see cref="ManifestResourceRow" /> struct.
        /// </summary>
        /// <param name="offset">The offset.</param>
        /// <param name="flags">The flags.</param>
        /// <param name="nameString">Index of the name string.</param>
        /// <param name="implementation">The implementation.</param>
        public ManifestResourceRow(uint offset, ManifestResourceAttributes flags, HeapIndexToken nameString,
			Token implementation)
        {
            Offset = offset;
            Flags = flags;
            NameString = nameString;
            Implementation = implementation;
        }
开发者ID:Zahovay,项目名称:MOSA-Project,代码行数:15,代码来源:ManifestResourceRow.cs


示例5: ManifestResourceRow

        /// <summary>
        /// Initializes a new instance of the <see cref="ManifestResourceRow"/> struct.
        /// </summary>
        /// <param name="offset">The offset.</param>
        /// <param name="flags">The flags.</param>
        /// <param name="nameStringIndex">Index of the name string.</param>
        /// <param name="implementation">The implementation table idx.</param>
        public ManifestResourceRow(uint offset, ManifestResourceAttributes flags, HeapIndexToken nameStringIndex,
			Token implementation)
        {
            _offset = offset;
            _flags = flags;
            _nameStringIdx = nameStringIndex;
            _implementation = implementation;
        }
开发者ID:GeroL,项目名称:MOSA-Project,代码行数:15,代码来源:ManifestResourceRow.cs


示例6: ManifestResourceRow

 /// <summary>
 /// Initializes a new instance of the <see cref="ManifestResourceRow"/> struct.
 /// </summary>
 /// <param name="offset">The offset.</param>
 /// <param name="flags">The flags.</param>
 /// <param name="nameStringIndex">Index of the name string.</param>
 /// <param name="implementationTableIdx">The implementation table idx.</param>
 public ManifestResourceRow(uint offset, ManifestResourceAttributes flags, TokenTypes nameStringIndex,
     TokenTypes implementationTableIdx)
 {
     _offset = offset;
     _flags = flags;
     _nameStringIdx = nameStringIndex;
     _implementationTableIdx = implementationTableIdx;
 }
开发者ID:rtownsend,项目名称:MOSA-Project,代码行数:15,代码来源:ManifestResourceRow.cs


示例7: ToString

		internal static string ToString(ManifestResourceAttributes flags) {
			var sb = new StringBuilder();

			switch ((flags & ManifestResourceAttributes.VisibilityMask)) {
			case ManifestResourceAttributes.Public: sb.Append("Public"); break;
			case ManifestResourceAttributes.Private: sb.Append("Private"); break;
			default: sb.Append("Visibility_UNKNOWN"); break;
			}

			return sb.ToString();
		}
开发者ID:SAD1992,项目名称:justdecompile-plugins,代码行数:11,代码来源:ManifestResourceAttributes.cs


示例8: AddManifestResource

 public void AddManifestResource(
     ManifestResourceAttributes attributes,
     StringHandle name,
     EntityHandle implementation,
     long offset)
 {
     _manifestResourceTable.Add(new ManifestResourceRow
     {
         Flags = (uint)attributes,
         Name = name,
         Implementation = implementation.IsNil ? 0 : (uint)CodedIndex.ToImplementation(implementation),
         Offset = (uint)offset
     });
 }
开发者ID:tzetang,项目名称:corefx,代码行数:14,代码来源:MetadataBuilder.Tables.cs


示例9: AddManifestResource

		void AddManifestResource (uint offset, string name, ManifestResourceAttributes flags, MetadataToken impl)
		{
			ManifestResourceTable mrTable = m_tableWriter.GetManifestResourceTable ();
			ManifestResourceRow mrRow = m_rowWriter.CreateManifestResourceRow (
				offset,
				flags,
				m_mdWriter.AddString (name),
				impl);

			mrTable.Rows.Add (mrRow);
		}
开发者ID:nobled,项目名称:mono,代码行数:11,代码来源:StructureWriter.cs


示例10: ManifestResource

 public ManifestResource(string name, ManifestResourceAttributes attributes, MetaDataMember implementation, uint offset)
     : base(new MetaDataRow(offset, (uint)attributes, 0U, 0U))
 {
     this._name = name;
     this._implementation = implementation;
 }
开发者ID:Rex-Hays,项目名称:GNIDA,代码行数:6,代码来源:ManifestResource.cs


示例11: EmbeddedResource

 public EmbeddedResource(string name, ManifestResourceAttributes attributes, Stream stream)
     : base(name, attributes)
 {
     this.stream = stream;
 }
开发者ID:jbevain,项目名称:cecil,代码行数:5,代码来源:EmbeddedResource.cs


示例12: LinkedResource

		public LinkedResource (string name, ManifestResourceAttributes flags, string file)
			: base (name, flags)
		{
			this.file = file;
		}
开发者ID:yayanyang,项目名称:monodevelop,代码行数:5,代码来源:LinkedResource.cs


示例13: AssemblyLinkedResource

		public AssemblyLinkedResource (string name, ManifestResourceAttributes flags, AssemblyNameReference reference)
			: base (name, flags)
		{
			this.reference = reference;
		}
开发者ID:XQuantumForceX,项目名称:Reflexil,代码行数:5,代码来源:AssemblyLinkedResource.cs


示例14: Resource

		internal Resource (string name, ManifestResourceAttributes attributes)
		{
			this.name = name;
			this.attributes = (uint) attributes;
		}
开发者ID:0xb1dd1e,项目名称:cecil,代码行数:5,代码来源:Resource.cs


示例15: LinkedResource

		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="name">Name of resource</param>
		/// <param name="file">The file</param>
		/// <param name="flags">Resource flags</param>
		public LinkedResource(UTF8String name, FileDef file, ManifestResourceAttributes flags)
			: base(name, flags) {
			this.file = file;
		}
开发者ID:EmilZhou,项目名称:dnlib,代码行数:10,代码来源:Resource.cs


示例16: AssemblyLinkedResource

		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="name">Name of resource</param>
		/// <param name="asmRef">Assembly reference</param>
		/// <param name="flags">Resource flags</param>
		public AssemblyLinkedResource(UTF8String name, AssemblyRef asmRef, ManifestResourceAttributes flags)
			: base(name, flags) {
			if (asmRef == null)
				throw new ArgumentNullException("asmRef");
			this.asmRef = asmRef;
		}
开发者ID:EmilZhou,项目名称:dnlib,代码行数:12,代码来源:Resource.cs


示例17: EmbeddedResource

		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="name">Name of resource</param>
		/// <param name="dataStream">Resource data</param>
		/// <param name="flags">Resource flags</param>
		public EmbeddedResource(UTF8String name, IImageStream dataStream, ManifestResourceAttributes flags)
			: base(name, flags) {
			if (dataStream == null)
				throw new ArgumentNullException("dataStream");
			this.dataStream = dataStream;
		}
开发者ID:EmilZhou,项目名称:dnlib,代码行数:12,代码来源:Resource.cs


示例18: Resource

		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="name">Name</param>
		/// <param name="flags">flags</param>
		protected Resource(UTF8String name, ManifestResourceAttributes flags) {
			this.name = name;
			this.flags = flags;
		}
开发者ID:EmilZhou,项目名称:dnlib,代码行数:9,代码来源:Resource.cs


示例19: EmbeddedResource

 internal EmbeddedResource(uint offset, ManifestResourceAttributes attributes, string name)
 {
     this.Offset = offset;
     this.Attributes = attributes;
     this.Name = name;
 }
开发者ID:CAPCHIK,项目名称:roslyn,代码行数:6,代码来源:EmbeddedResource.cs


示例20: CreateManifestResourceRow

 public ManifestResourceRow CreateManifestResourceRow(uint _offset, ManifestResourceAttributes _flags, uint _name, MetadataToken _implementation)
 {
     ManifestResourceRow row = new ManifestResourceRow ();
     row.Offset = _offset;
     row.Flags = _flags;
     row.Name = _name;
     row.Implementation = _implementation;
     return row;
 }
开发者ID:leftouterjoin,项目名称:loj-prj1,代码行数:9,代码来源:MetadataRowWriter.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ManosAction类代码示例发布时间:2022-05-24
下一篇:
C# Manifest类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap