void PrintExample(HelpExample example) { if (example != null) { formatter.AddExample(example.Example); formatter.AddDescription(example.Description); } }
HelpExample GetExample(ExampleAttribute attribute) { var help = new HelpExample(); help.Example = attribute.Example; help.Description = attribute.Description; help.IsFile = attribute.IsFile; return(help); }
HelpExample GetExample(ExampleAttribute attribute) { var help = new HelpExample(); help.Example = attribute.ExampleCode; help.Description = GetLocalized(attribute.DescriptionKey); help.IsFile = attribute.IsFile; return(help); }
HelpExample GetExample(ExampleAttribute attribute) { var help = new HelpExample(); help.Example = attribute.ExampleCode; help.Description = GetLocalized(attribute.DescriptionKey); help.IsFile = attribute.IsFile; return help; }