You can use generics in S# through the syntax

 MethodName< |TypeName|>(...)

For example it you have an Attach method you can call it with the string type as follows:

 Attach< |string|>(...)