This is an example entry of a function help entry.
Esempio n. 1
0
 void PrintExample(HelpExample example)
 {
     if (example != null)
     {
         formatter.AddExample(example.Example);
         formatter.AddDescription(example.Description);
     }
 }
Esempio n. 2
0
        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);
        }
Esempio n. 4
0
 HelpExample GetExample(ExampleAttribute attribute)
 {
     var help = new HelpExample();
     help.Example = attribute.ExampleCode;
     help.Description = GetLocalized(attribute.DescriptionKey);
     help.IsFile = attribute.IsFile;
     return help;
 }