Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# class reference

// Unlike java we cant do Class<?> to contain a generic class
// but we can use Type to contain a type
// A type is essentially Class<?> but with some extra stuff added on
// You can grab a type with typeof(object/reference)
// It does the job :shrug:

Type stringClass = typeof(string); // this will store the string type <3
 
PREVIOUS NEXT
Tagged: #class #reference
ADD COMMENT
Topic
Name
1+7 =