Xamarin Public Jenkins (auto-signing) 94b2861243 Imported Upstream version 4.8.0.309
Former-commit-id: 5f9c6ae75f295e057a7d2971f3a6df4656fa8850
2016-11-10 13:04:39 +00:00

50 lines
829 B
C#

//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Copyright (c) 2008 - 2015 Jb Evain
// Copyright (c) 2008 - 2011 Novell, Inc.
//
// Licensed under the MIT/X11 license.
//
namespace Mono.Cecil {
public class ModuleReference : IMetadataScope {
string name;
internal MetadataToken token;
public string Name {
get { return name; }
set { name = value; }
}
public virtual MetadataScopeType MetadataScopeType {
get { return MetadataScopeType.ModuleReference; }
}
public MetadataToken MetadataToken {
get { return token; }
set { token = value; }
}
internal ModuleReference ()
{
this.token = new MetadataToken (TokenType.ModuleRef);
}
public ModuleReference (string name)
: this ()
{
this.name = name;
}
public override string ToString ()
{
return name;
}
}
}