Generics

On this page, we will cover generics

What are Generics?

Generics are not fully implemented

When invoking a generic method, you provide the specific data types that you want to use in place of the placeholder type parameter. This is known as a type argument. As of the current version of Radon, you cannot declare a generic method and there are only two built-in methods that use generics. As Radon goes on we will continue to expand on generics. The two generic methods are the following: archive.Write<T>(T value) archive.Read<T>()

Generic Invocations

[MethodCall]<[Type Arguments]>([Arguemnts])

// Example
MyType.MyGenericMethod<long>(10000)

Last updated