PageRenderTime 17ms CodeModel.GetById 9ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/Mono.Cecil/LinkedResource.cs

http://github.com/jbevain/cecil
C# | 42 lines | 25 code | 8 blank | 9 comment | 0 complexity | 76bee776b1b09a9102cc37f5097759e4 MD5 | raw file
 1//
 2// Author:
 3//   Jb Evain (jbevain@gmail.com)
 4//
 5// Copyright (c) 2008 - 2015 Jb Evain
 6// Copyright (c) 2008 - 2011 Novell, Inc.
 7//
 8// Licensed under the MIT/X11 license.
 9//
10
11namespace Mono.Cecil {
12
13	public sealed class LinkedResource : Resource {
14
15		internal byte [] hash;
16		string file;
17
18		public byte [] Hash {
19			get { return hash; }
20		}
21
22		public string File {
23			get { return file; }
24			set { file = value; }
25		}
26
27		public override ResourceType ResourceType {
28			get { return ResourceType.Linked; }
29		}
30
31		public LinkedResource (string name, ManifestResourceAttributes flags)
32			: base (name, flags)
33		{
34		}
35
36		public LinkedResource (string name, ManifestResourceAttributes flags, string file)
37			: base (name, flags)
38		{
39			this.file = file;
40		}
41	}
42}