本文整理汇总了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());
}
示例2: TypeListContainsType
protected bool TypeListContainsType(List<ITypeReference> list, ITypeReference type)
{
foreach (var t in list)
{
if (t.ToString() == type.ToString())
{
return true;
}
}
return false;
}
示例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());
}
示例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());
}
示例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;
}
}
示例6: loadBogusParameter
private List<IOperation> loadBogusParameter(ITypeReference type)
{
return loadBogusParameter(type.ToString());
}
示例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);
}
示例8: isPhoneUIChangerClass
private bool isPhoneUIChangerClass(ITypeReference typeRef) {
return PHONE_UI_CHANGER_METHODS.Keys.Contains(typeRef.ToString());
}