本文整理汇总了C#中Mono.Cecil.MemberReference.UserFriendlyName方法的典型用法代码示例。如果您正苦于以下问题:C# MemberReference.UserFriendlyName方法的具体用法?C# MemberReference.UserFriendlyName怎么用?C# MemberReference.UserFriendlyName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mono.Cecil.MemberReference
的用法示例。
在下文中一共展示了MemberReference.UserFriendlyName方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Log_implicitly_creating_member
private void Log_implicitly_creating_member(string kind, MemberReference forMember)
{
Log.Information("Implicitly creating {0:l} for: {1:l}.", kind,forMember.UserFriendlyName());
}
示例2: Log_creating_member
private void Log_creating_member(string kind, MemberReference forMember)
{
Log.Debug("Creating {0:l} for: {1:l}", kind, forMember.UserFriendlyName());
}
示例3: Log_duplicate_member
private void Log_duplicate_member(string kind, MemberReference newMember, MemberReference oldMember)
{
Log.Warning("Conflict between {0:l}s: {1:l}, and {2:l}.", kind, newMember.UserFriendlyName(), oldMember.UserFriendlyName());
}
示例4: LogFailedToRemove
private void LogFailedToRemove(string memberType, MemberReference memberRef)
{
Log.Warning("Tried to remove a {type:l} for {fullName:l}, but couldn't find it. This can be expected if you're both removing and adding the member at the same time.", memberType, memberRef.UserFriendlyName());
}
示例5: Multiple_action_attributes
public static PatchDeclerationException Multiple_action_attributes(MemberReference yourMember, object[] attributes)
{
return new PatchDeclerationException($"The member {yourMember.UserFriendlyName()} has more than one action attribute: {attributes.Select(x => x.GetType().Name).Join(", ")}");
}
示例6: Log_trying_to_fix_disabled_reference
private void Log_trying_to_fix_disabled_reference(string kind, MemberReference badMemberRef)
{
Log.Warning("Trying to fix {0} reference to {1}, but it has the DisablePatching attribute.", kind,
badMemberRef.UserFriendlyName());
}
示例7: Log_fixing_reference
private void Log_fixing_reference(string kind, MemberReference badMemberRef)
{
Log.Verbose("Trying to fix {0} reference for: {1}", kind, badMemberRef.UserFriendlyName());
}
示例8: Log_fixed_reference
private void Log_fixed_reference(string kind, MemberReference oldMemberRef, MemberReference fixedMemberRef)
{
Log.Verbose("Fixed {0} reference: {1} ⇒ {2}", kind, oldMemberRef.UserFriendlyName(),
fixedMemberRef.UserFriendlyName());
}