• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IName类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IName的典型用法代码示例。如果您正苦于以下问题:C# IName类的具体用法?C# IName怎么用?C# IName使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IName类属于命名空间,在下文中一共展示了IName类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: NestedTypeName

 internal NestedTypeName(INameTable nameTable, NominalTypeName containingTypeName, IName mangledName) {
   this.ContainingTypeName = containingTypeName;
   this.Name = mangledName;
   string nameStr = null;
   TypeCache.SplitMangledTypeName(mangledName.Value, out nameStr, out this.genericParameterCount);
   this.unmangledTypeName = nameTable.GetNameFor(nameStr);
 }
开发者ID:RUB-SysSec,项目名称:Probfuscator,代码行数:7,代码来源:Attributes.cs


示例17: EqualName

 /// <summary>
 /// Check if the given <see cref="IName"/> instance has the same <see cref="Name"/> as this instance.
 /// </summary>
 /// <returns>
 /// <c>true</c> if the given <see cref="IName"/> instance has the same <see cref="Name"/> as this instance;
 /// <c>false</c> otherwise.
 /// </returns>
 /// <param name='other'>
 /// The <see cref="IName"/> instance to compare with.
 /// </param>
 public virtual bool EqualName(IName other)
 {
     return this.Name == other.Name;
 }
开发者ID:KommuSoft,项目名称:NUtils,代码行数:14,代码来源:NameShadow.cs


示例18: ScannerState

 internal ScannerState(
   int currentIndex,
   TypeNameTokenKind currentTypeNameTokenKind,
   IName currentIdentifierInfo
 ) {
   this.CurrentIndex = currentIndex;
   this.CurrentTypeNameTokenKind = currentTypeNameTokenKind;
   this.CurrentIdentifierInfo = currentIdentifierInfo;
 }
开发者ID:RUB-SysSec,项目名称:Probfuscator,代码行数:9,代码来源:Attributes.cs


示例19: CompositeSourceDocument

 /// <summary>
 /// Allocates an object that represents a source document that is the composition of an ordered enumeration of fragments from other source document.
 /// The document is parsed according to the rules of a particular language, such as C#, to produce an object model that can be obtained via the CompilationPart property.
 /// </summary>
 /// <param name="name">The name of the document. Used to identify the document in user interaction.</param>
 protected CompositeSourceDocument(IName name)
   : base(name) {
 }
开发者ID:modulexcite,项目名称:Microsoft.Cci.Metadata,代码行数:8,代码来源:Implementations.cs


示例20: AddNamedObject

 public void AddNamedObject(IName namedObject)
 {
     if (namedObject != null)
     {
         this.namedObjects.Add(namedObject.Name, namedObject);
     }
 }
开发者ID:00erik2,项目名称:Physicist,代码行数:7,代码来源:Map.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# INameDecoder类代码示例发布时间:2022-05-24
下一篇:
C# INamable类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap