~ubuntu-branches/ubuntu/trusty/mono-addins/trusty-proposed

« back to all changes in this revision

Viewing changes to Mono.Addins.CecilReflector/Mono.Cecil/Mono.Cecil/LinkedResource.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-04-25 11:11:33 UTC
  • mfrom: (4.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110425111133-t05u5p7o5fxx70fu
Tags: 0.6-2
Upload to Unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
// Author:
5
5
//   Jb Evain (jbevain@gmail.com)
6
6
//
7
 
// (C) 2005 - 2007 Jb Evain
 
7
// Copyright (c) 2008 - 2010 Jb Evain
8
8
//
9
9
// Permission is hereby granted, free of charge, to any person obtaining
10
10
// a copy of this software and associated documentation files (the
30
30
 
31
31
        public sealed class LinkedResource : Resource {
32
32
 
33
 
                byte [] m_hash;
34
 
                string m_file;
 
33
                internal byte [] hash;
 
34
                string file;
35
35
 
36
36
                public byte [] Hash {
37
 
                        get { return m_hash; }
38
 
                        set { m_hash = value; }
 
37
                        get { return hash; }
39
38
                }
40
39
 
41
40
                public string File {
42
 
                        get { return m_file; }
43
 
                        set { m_file = value; }
44
 
                }
45
 
 
46
 
                public LinkedResource (string name, ManifestResourceAttributes flags, string file) :
47
 
                        base (name, flags)
48
 
                {
49
 
                        m_file = file;
50
 
                }
51
 
 
52
 
                public override void Accept (IReflectionStructureVisitor visitor)
53
 
                {
54
 
                        visitor.VisitLinkedResource (this);
 
41
                        get { return file; }
 
42
                        set { file = value; }
 
43
                }
 
44
 
 
45
                public override ResourceType ResourceType {
 
46
                        get { return ResourceType.Linked; }
 
47
                }
 
48
 
 
49
                public LinkedResource (string name, ManifestResourceAttributes flags)
 
50
                        : base (name, flags)
 
51
                {
 
52
                }
 
53
 
 
54
                public LinkedResource (string name, ManifestResourceAttributes flags, string file)
 
55
                        : base (name, flags)
 
56
                {
 
57
                        this.file = file;
55
58
                }
56
59
        }
57
60
}