Advertisement
Guest User

Untitled

a guest
Nov 21st, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. internal interface Rule {
  2. }
  3.  
  4. private class Rule<T> : Rule {
  5. //Properties & Other Stuff
  6. }
  7.  
  8. void method() {
  9. //For simplicity I used string here. It can be anything when the code is in context
  10. Type _type = typeof(string);
  11. Rule[] _rules;
  12.  
  13. //This is causing an error because _type could not be found
  14. _rules = new Rule<_type>[] { };
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement