Esempio n. 1
0
 /// <summary>
 /// RegisterCommand generic method
 /// </summary>
 /// <author>ALVES Quentin</author>
 /// <note>Run current Aurora repler editor instance</note>
 /// <typeparam name="T" >Type that store command code</typeparam>
 /// <param name="flags" >Flags that defined the visibility of command</param>
 public void RegisterCommand <T>(BindingFlags flags) =>
 this.commands.Concat(AttributeHelper.ExtractAttributeMetaOf <T, ReplCommand, ReplCommandMeta>(flags));
Esempio n. 2
0
 /// <summary>
 /// RegisterControl generic method
 /// </summary>
 /// <author>ALVES Quentin</author>
 /// <note>Run current Aurora repler editor instance</note>
 /// <typeparam name="T" >Type that store control code</typeparam>
 /// <param name="flags" >Flags that defined the visibility of control</param>
 public void RegisterControl <T>(BindingFlags flags) =>
 this.controls.Concat(AttributeHelper.ExtractAttributeMetaOf <T, ReplControl, ReplControlMeta>(flags));