本文整理汇总了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>();
}
示例2: LoadData
private void LoadData(CLIFile pFile)
{
Offset = pFile.ReadUInt32();
Flags = (ManifestResourceAttributes)pFile.ReadUInt32();
Name = pFile.ReadStringHeap(pFile.ReadHeapIndex(HeapOffsetSizes.Strings32Bit));
Implementation.LoadData(pFile);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例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
});
}
示例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);
}
示例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;
}
示例11: EmbeddedResource
public EmbeddedResource(string name, ManifestResourceAttributes attributes, Stream stream)
: base(name, attributes)
{
this.stream = stream;
}
示例12: LinkedResource
public LinkedResource (string name, ManifestResourceAttributes flags, string file)
: base (name, flags)
{
this.file = file;
}
示例13: AssemblyLinkedResource
public AssemblyLinkedResource (string name, ManifestResourceAttributes flags, AssemblyNameReference reference)
: base (name, flags)
{
this.reference = reference;
}
示例14: Resource
internal Resource (string name, ManifestResourceAttributes attributes)
{
this.name = name;
this.attributes = (uint) attributes;
}
示例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;
}