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


C# ITypeReference.ToString方法代码示例

本文整理汇总了C#中ITypeReference.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# ITypeReference.ToString方法的具体用法?C# ITypeReference.ToString怎么用?C# ITypeReference.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ITypeReference的用法示例。


在下文中一共展示了ITypeReference.ToString方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddAdditionalType

    /// <summary>
    /// Adds the type of the additional.
    /// </summary>
    /// <param name="typeReference">The type reference.</param>
    private void AddAdditionalType(ITypeReference typeReference)
    {
      if (this.TypeDataList.Find(typeInfo => string.Compare(typeInfo.TypeName, typeReference.Name, StringComparison.Ordinal) == 0) != null)
      {
        // Type already added
        Logger.Current.Info("The type is already in the additional list..." + typeReference.ToString());
        return;
      }

      this.AdditionalLoadList.Add(typeReference.Resolve());
    }
开发者ID:WrongDog,项目名称:Sequence,代码行数:15,代码来源:ClassData.cs

示例2: TypeListContainsType

        protected bool TypeListContainsType(List<ITypeReference> list, ITypeReference type)
        {
            foreach (var t in list)
            {
                if (t.ToString() == type.ToString())
                {
                    return true;
                }
            }

            return false;
        }
开发者ID:tapicer,项目名称:resource-contracts-.net,代码行数:12,代码来源:MemoryVisitor.cs

示例3: GetTmpField

 /// <summary>
 /// Returns the tmp field for the method and type, if it doesn't exist it is created and added to the class
 /// </summary>
 protected FieldDefinition GetTmpField(IMethodDefinition method, ITypeReference type)
 {
     return GetTmpField(method, type.ToString());
 }
开发者ID:tapicer,项目名称:resource-contracts-.net,代码行数:7,代码来源:MemoryVisitor.cs

示例4: GetRsdField

 /// <summary>
 /// Returns the rsd field for the method, type and name, if it doesn't exist it is created and added to the class
 /// </summary>
 protected FieldDefinition GetRsdField(IMethodDefinition method, string rsdName, ITypeReference type)
 {
     return GetRsdField(method, rsdName, type.ToString());
 }
开发者ID:tapicer,项目名称:resource-contracts-.net,代码行数:7,代码来源:MemoryVisitor.cs

示例5: GetDelphiStyleResolutionScope

 private string GetDelphiStyleResolutionScope(ITypeReference reference)
 {
     string result = reference.ToString();
     while (true)
     {
         ITypeReference OwnerRef = (reference.Owner as ITypeReference);
         if (OwnerRef == null)
         {
             string namespacestr = reference.Namespace;
             if (namespacestr.Length == 0)
                 return result;
             else
                 return namespacestr + "." + result;
         }
         reference = OwnerRef;
         result = reference.ToString() + "." + result;
     }
 }
开发者ID:jorik041,项目名称:JavaScriptLanguage,代码行数:18,代码来源:JavaScriptLanguage.cs

示例6: loadBogusParameter

 private List<IOperation> loadBogusParameter(ITypeReference type)
 {
     return loadBogusParameter(type.ToString());
 }
开发者ID:RUB-SysSec,项目名称:Probfuscator,代码行数:4,代码来源:Helper.cs

示例7: isKnownUIChanger

 private bool isKnownUIChanger(ITypeReference typeRef, IMethodCall call) {
   string methodName= call.MethodToCall.Name.Value;
   IEnumerable<String> methodsForType = PHONE_UI_CHANGER_METHODS[typeRef.ToString()];
   return methodsForType != null && methodsForType.Contains(methodName);
 }
开发者ID:lleraromero,项目名称:bytecodetranslator,代码行数:5,代码来源:PhoneCodeHelper.cs

示例8: isPhoneUIChangerClass

 private bool isPhoneUIChangerClass(ITypeReference typeRef) {
   return PHONE_UI_CHANGER_METHODS.Keys.Contains(typeRef.ToString());
 }
开发者ID:lleraromero,项目名称:bytecodetranslator,代码行数:3,代码来源:PhoneCodeHelper.cs


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