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


C# MemberReference.UserFriendlyName方法代码示例

本文整理汇总了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());
 }
开发者ID:GregRos,项目名称:Patchwork,代码行数:4,代码来源:CreateNew.cs

示例2: Log_creating_member

 private void Log_creating_member(string kind, MemberReference forMember)
 {
     Log.Debug("Creating {0:l} for: {1:l}", kind, forMember.UserFriendlyName());
 }
开发者ID:GregRos,项目名称:Patchwork,代码行数:4,代码来源:CreateNew.cs

示例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());
 }
开发者ID:GregRos,项目名称:Patchwork,代码行数:4,代码来源:CreateNew.cs

示例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());
 }
开发者ID:gitter-badger,项目名称:Patchwork,代码行数:4,代码来源:AssemblyPatcher.cs

示例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(", ")}");
 }
开发者ID:GregRos,项目名称:Patchwork,代码行数:4,代码来源:Errors.cs

示例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());
 }
开发者ID:GregRos,项目名称:Patchwork,代码行数:5,代码来源:FixReferences.cs

示例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());
 }
开发者ID:GregRos,项目名称:Patchwork,代码行数:4,代码来源:FixReferences.cs

示例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());
 }
开发者ID:GregRos,项目名称:Patchwork,代码行数:5,代码来源:FixReferences.cs


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