本文整理汇总了C#中IName类的典型用法代码示例。如果您正苦于以下问题:C# IName类的具体用法?C# IName怎么用?C# IName使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IName类属于命名空间,在下文中一共展示了IName类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Assembly
/// <summary>
/// Allocates an object that represents a .NET assembly.
/// </summary>
/// <param name="name">The name of the unit.</param>
/// <param name="location">An indication of the location where the unit is or will be stored. This need not be a file system path and may be empty.
/// The interpretation depends on the IMetadataHost instance used to resolve references to this unit.</param>
/// <param name="moduleName">The name of the module containing the assembly manifest. This can be different from the name of the assembly itself.</param>
/// <param name="assemblyReferences">A list of the assemblies that are referenced by this module.</param>
/// <param name="moduleReferences">A list of the modules that are referenced by this module.</param>
/// <param name="resources">A list of named byte sequences persisted with the assembly and used during execution, typically via .NET Framework helper classes.</param>
/// <param name="files">
/// A list of the files that constitute the assembly. These are not the source language files that may have been
/// used to compile the assembly, but the files that contain constituent modules of a multi-module assembly as well
/// as any external resources. It corresonds to the File table of the .NET assembly file format.
/// </param>
protected Assembly(IName name, string location, IName moduleName, IEnumerable<IAssemblyReference> assemblyReferences, IEnumerable<IModuleReference> moduleReferences,
IEnumerable<IResourceReference> resources, IEnumerable<IFileReference> files)
: base(name, location, Dummy.Assembly, assemblyReferences, moduleReferences) {
this.moduleName = moduleName;
this.resources = resources;
this.files = files;
}
示例2: VccAssembly
public VccAssembly(IName name, string location, ISourceEditHost hostEnvironment, VccOptions options,
IEnumerable<IAssemblyReference> assemblyReferences, IEnumerable<IModuleReference> moduleReferences, IEnumerable<VccSourceDocument> programSources)
: base(name, location, name, assemblyReferences, moduleReferences, new List<IResourceReference>(0).AsReadOnly(), new List<IFileReference>(0).AsReadOnly())
{
this.options = options;
this.hostEnvironment = hostEnvironment;
this.programSources = programSources;
}
示例3: GetNameRecord
/**
* For manipulating the internals of {@link HSSFName} during Testing.<br/>
* Some Tests need a {@link NameRecord} with unusual state, not normally producible by POI.
* This method achieves the aims at low cost without augmenting the POI usermodel api.
* @return a reference to the wrapped {@link NameRecord}
*/
public static NameRecord GetNameRecord(IName definedName)
{
FieldInfo f;
f = typeof(HSSFName).GetField("_definedNameRec",BindingFlags.Instance|BindingFlags.NonPublic);
//f.SetAccessible(true);
return (NameRecord)f.GetValue(definedName);
}
示例4: GeometricNetworkLoader
//
// CONSTRUCTOR
//
public GeometricNetworkLoader(byte[] bytes)
{
// Cast byte to object
object obj = (object)bytes;
// Unpack dropped object to Esri name enumerator
INameFactory nameFactory = new NameFactoryClass();
IEnumName enumName = nameFactory.UnpackageNames(ref obj);
this._name = enumName.Next();
}
开发者ID:qjw2bqn,项目名称:Esri-Geometry-Network-Configuration-Manager,代码行数:13,代码来源:GeometricNetworkLoader.cs
示例5: SourceDocument
/// <summary>
/// Allocates an object that represents a source document, such as a file, which is parsed according to the rules of a particular langauge,
/// such as C#, to produce an object model.
/// </summary>
/// <param name="name">The name of the document. Used to identify the document in user interaction.</param>
protected SourceDocument(IName name) {
this.name = name;
}
示例6: PrimarySourceDocument
/// <summary>
/// Allocates an object that represents a source document, such as file, which is parsed according to the rules of a particular langauge,
/// such as C#, to produce an object model.
/// </summary>
/// <param name="name">The name of the document. Used to identify the document in user interaction.</param>
/// <param name="location">The location where the document was found or where it will be stored.</param>
/// <param name="streamReader">A StreamReader instance whose BaseStream produces the contents of the document.</param>
protected PrimarySourceDocument(IName name, string location, StreamReader streamReader)
: base(name) {
this.location = location;
this.GetOwnStreamReaderAndReadAhead(streamReader);
}
示例7: lock
uint IInternFactory.GetNestedTypeReferenceInternedKey(ITypeReference containingTypeReference, IName typeName, uint genericParameterCount) {
lock (GlobalLock.LockingObject) {
return this.GetNestedTypeReferenceInternId(containingTypeReference, typeName, genericParameterCount);
}
}
示例8: Unit
/// <summary>
/// Initializes a unit of metadata stored as a single artifact and potentially produced and revised independently from other units.
/// Examples of units include .NET assemblies and modules, as well C++ object files and compiled headers.
/// </summary>
/// <param name="name">The name of the unit.</param>
/// <param name="location">An indication of the location where the unit is or will be stored. This need not be a file system path and may be empty.
/// The interpretation depends on the ICompilationHostEnviroment instance used to resolve references to this unit.</param>
protected Unit(IName name, string location) {
this.name = name;
this.location = location;
}
示例9: NamespaceName
internal NamespaceName(INameTable nameTable, NamespaceName/*?*/ parentNamespaceName, IName name) {
this.ParentNamespaceName = parentNamespaceName;
this.Name = name;
if (parentNamespaceName == null)
this.FullyQualifiedName = name;
else
this.FullyQualifiedName = nameTable.GetNameFor(parentNamespaceName.FullyQualifiedName.Value + "." + name);
}
示例10: FieldOrPropertyNamedArgumentExpression
internal FieldOrPropertyNamedArgumentExpression(
IName name,
ITypeReference containingType,
bool isField,
ITypeReference fieldOrPropTypeReference,
ExpressionBase expressionValue
) {
this.Name = name;
this.ContainingType = containingType;
if (isField)
this.Flags |= FieldOrPropertyNamedArgumentExpression.IsFieldFlag;
this.fieldOrPropTypeReference = fieldOrPropTypeReference;
this.ExpressionValue = expressionValue;
}
示例11: GetMatchingMembersNamed
public IEnumerable<ITypeDefinitionMember> GetMatchingMembersNamed(IName name, bool ignoreCase, Function<ITypeDefinitionMember, bool> predicate)
{
return IteratorHelper.GetEmptyEnumerable<ITypeDefinitionMember>();
}
示例12: GetMembersNamed
public IEnumerable<ITypeDefinitionMember> GetMembersNamed(IName name, bool ignoreCase)
{
return IteratorHelper.GetEmptyEnumerable<ITypeDefinitionMember>();
}
示例13: NamespaceTypeName
internal NamespaceTypeName(INameTable nameTable, NamespaceName/*?*/ namespaceName, IName name) {
this.NamespaceName = namespaceName;
this.Name = name;
string nameStr = null;
TypeCache.SplitMangledTypeName(name.Value, out nameStr, out this.genericParameterCount);
if (this.genericParameterCount > 0)
this.unmanagledTypeName = nameTable.GetNameFor(nameStr);
else
this.unmanagledTypeName = name;
}
示例14: Module
/// <summary>
/// Allocates an object that represents a .NET module.
/// </summary>
/// <param name="name">The name of the unit.</param>
/// <param name="location">An indication of the location where the unit is or will be stored. This need not be a file system path and may be empty.
/// The interpretation depends on the ICompilationHostEnviroment instance used to resolve references to this unit.</param>
/// <param name="containingAssembly">The assembly that contains this module.</param>
/// <param name="assemblyReferences">A list of the assemblies that are referenced by this module.</param>
/// <param name="moduleReferences">A list of the modules that are referenced by this module.</param>
protected Module(IName name, string location, IAssembly containingAssembly, IEnumerable<IAssemblyReference> assemblyReferences, IEnumerable<IModuleReference> moduleReferences)
: base(name, location) {
this.containingAssembly = containingAssembly;
this.assemblyReferences = assemblyReferences;
this.moduleReferences = moduleReferences;
}
示例15: GetNestedTypeReferenceInternId
uint GetNestedTypeReferenceInternId(ITypeReference containingTypeReference, IName typeName, uint genericParameterCount) {
Contract.Requires(containingTypeReference != null);
Contract.Requires(typeName != null);
uint containingTypeReferenceInteredId = this.GetTypeReferenceInternId(containingTypeReference);
foreach (NestedTypeStore nstTypeStore in this.NestedTypeHashtable.GetValuesFor((uint)typeName.UniqueKey)) {
if (
nstTypeStore.ContainingTypeInternedId == containingTypeReferenceInteredId
&& nstTypeStore.GenericParameterCount == genericParameterCount
) {
return nstTypeStore.InternedId;
}
}
NestedTypeStore nstTypeStore1 = new NestedTypeStore(containingTypeReferenceInteredId, genericParameterCount, this.CurrentTypeInternValue++);
this.NestedTypeHashtable.Add((uint)typeName.UniqueKey, nstTypeStore1);
return nstTypeStore1.InternedId;
}