当前位置: 首页>>代码示例>>C#>>正文


C# IName类代码示例

本文整理汇总了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;
 }
开发者ID:Refresh06,项目名称:visualmutator,代码行数:22,代码来源:Units.cs

示例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;
   }
开发者ID:edgar-pek,项目名称:VCDryad,代码行数:8,代码来源:Units.cs

示例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);
        }
开发者ID:xoposhiy,项目名称:npoi,代码行数:14,代码来源:TestHSSFName.cs

示例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;
 }
开发者ID:modulexcite,项目名称:Microsoft.Cci.Metadata,代码行数:8,代码来源:Implementations.cs

示例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);
 }
开发者ID:modulexcite,项目名称:Microsoft.Cci.Metadata,代码行数:12,代码来源:Implementations.cs

示例7: lock

 uint IInternFactory.GetNestedTypeReferenceInternedKey(ITypeReference containingTypeReference, IName typeName, uint genericParameterCount) {
   lock (GlobalLock.LockingObject) {
     return this.GetNestedTypeReferenceInternId(containingTypeReference, typeName, genericParameterCount);
   }
 }
开发者ID:Refresh06,项目名称:visualmutator,代码行数:5,代码来源:Core.cs

示例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;
 }
开发者ID:Refresh06,项目名称:visualmutator,代码行数:11,代码来源:Units.cs

示例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);
 }
开发者ID:RUB-SysSec,项目名称:Probfuscator,代码行数:8,代码来源:Attributes.cs

示例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;
 }
开发者ID:RUB-SysSec,项目名称:Probfuscator,代码行数:14,代码来源:Attributes.cs

示例11: GetMatchingMembersNamed

 public IEnumerable<ITypeDefinitionMember> GetMatchingMembersNamed(IName name, bool ignoreCase, Function<ITypeDefinitionMember, bool> predicate)
 {
     return IteratorHelper.GetEmptyEnumerable<ITypeDefinitionMember>();
 }
开发者ID:modulexcite,项目名称:pattern-matching-csharp,代码行数:4,代码来源:DummyGenericTypeInstance.cs

示例12: GetMembersNamed

 public IEnumerable<ITypeDefinitionMember> GetMembersNamed(IName name, bool ignoreCase)
 {
     return IteratorHelper.GetEmptyEnumerable<ITypeDefinitionMember>();
 }
开发者ID:modulexcite,项目名称:pattern-matching-csharp,代码行数:4,代码来源:DummyGenericTypeInstance.cs

示例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;
 }
开发者ID:RUB-SysSec,项目名称:Probfuscator,代码行数:10,代码来源:Attributes.cs

示例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;
 }
开发者ID:Refresh06,项目名称:visualmutator,代码行数:15,代码来源:Units.cs

示例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;
    }
开发者ID:Refresh06,项目名称:visualmutator,代码行数:17,代码来源:Core.cs


注:本文中的IName类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。