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


C# ManifestResourceAttributes类代码示例

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


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


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