Generics

From DevRiot for VS .Net Documentation

Jump to: navigation, search

Generics is, perhaps, the least straightforward feature RIOT supports.


Because each set of generic arguments changes any generic type, or generic method, behavior DevRiot will ask the user which set of generic arguments is going to use at the type and/or method level:


Generic Type Dialog
Generic Type Dialog
Generic Method Dialog
Generic Method Dialog


RIOT will also allow the user to change the generic arguments passed to a type using the command/button below. Invoking this command will bring the "Generic Type Dialog" (above left).


Change Type Under Test (T.U.T) generic arguments
Change Type Under Test (T.U.T) generic arguments


Each line in both dialogs can be considered code snippets. The user can ask the RIOT engine to include any type in the build tree. Notice in the upper right image this M.U.T takes two generic arguments and the first one is a doubly nested generic type. Just follow the standard syntax for each type. Code completion is not available yet so full names are required.


For a working demonstration of the majority of concepts described her follow this link [1]

Personal tools