コード例 #1
0
 public static WrongImplementationException With(HelpLinkType helpLinkType, string message)
 {
     return(new WrongImplementationException(helpLinkType, message));
 }
コード例 #2
0
 public static WrongImplementationException With(HelpLinkType helpLinkType, string format, params object[] args)
 {
     return(new WrongImplementationException(helpLinkType, string.Format(format, args)));
 }
コード例 #3
0
 private WrongImplementationException(HelpLinkType helpLinkType, string message)
     : base(string.Format("{0}{1}Help link:{2}", message, Environment.NewLine, HelpLinks[helpLinkType]))
 {
     HelpLinkType = helpLinkType;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomHelpLinkModel" /> class.
 /// </summary>
 /// <param name="linkType">linkType.</param>
 /// <param name="helpLink">helpLink.</param>
 public CustomHelpLinkModel(HelpLinkType linkType = default(HelpLinkType), string helpLink = default(string))
 {
     this.LinkType = linkType;
     this.HelpLink = helpLink;
 }
コード例 #5
0
 public static WrongImplementationException With(HelpLinkType helpLinkType, string format, params object[] args)
 {
     return new WrongImplementationException(helpLinkType, string.Format(format, args));
 }
コード例 #6
0
 public static WrongImplementationException With(HelpLinkType helpLinkType, string message)
 {
     return new WrongImplementationException(helpLinkType, message);
 }
コード例 #7
0
 private WrongImplementationException(HelpLinkType helpLinkType, string message)
     : base(string.Format("{0}{1}Help link:{2}", message, Environment.NewLine, HelpLinks[helpLinkType]))
 {
     HelpLinkType = helpLinkType;
 }