Note that there are some explanatory texts on larger screens.

plurals
  1. USJDMX
    primarykey
    data
    text
    plurals
    1. COThe example I gave was just a simple snippet to get the right syntax. What I was hoping to do was implement the using within a class that implements generics. One of the variables can be of type Array<T> or of Array<Cache<T>> depending of the #ifdef declarations. I implement array locking when doing iteration and would like to avoid having to #ifdef 2 ( Array<T> lock = and Array<Cache<T>> lock = ) using clauses when getting the lock of the array. But I cannot setup the using clause inside the class and the T is not define if the using clause if outside the class.
      singulars
    2. COThe example I gave was just a simple snippet to get the right syntax. What I was hoping to do was implement the using within a class that implements generics. One of the variables can be of type Array<T> or of Array<Cache<T>> depending of the #ifdef declarations. I implement array locking when doing iteration and would like to avoid having to #ifdef 2 ( Array<T> lock = and Array<Cache<T>> lock = ) using clauses when getting the lock of the array. But I cannot setup the using clause inside the class and the T is not define if the using clause if outside the class.
      singulars
    3. COyou can also do typeof( x ) to get the type needed for Activator.CreateInstance. x then equals System.Web.UI.WebControls.Label, System.Web.UI.WebControls.Textbox, or any other type you want to dynamically create
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload