當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。