News:

GinGly.com - Used by 85,000 Members - SMS Backed up 7,35,000 - Contacts Stored  28,850 !!

Main Menu

Generics Samples (Consuming Generics)

Started by sukishan, Jul 14, 2009, 04:32 PM

Previous topic - Next topic

sukishan

Generics Samples (Consuming Generics) 

The samples in this section demonstrate creating generics in C# and consuming them in J#.

Generic Stack Class Sample (Consuming Using J#) - The generic stack type imposes a constraint that the type parameter 'T' must be a type that implements the interface IDisplay

Delegate Sample (Applying a Generic Delegate Type) - A generic delegate type, Proc, is declared in C#. From J#, instantiate and apply the generic delegate type.

Generic Stack Interface Sample (Consuming an Interface) - The generic stack class implements a generic stack interface. From J#, consume this generic stack class in terms of the generic stack interface.

Generic Printing Method Sample (Prints an Array of Types) - A "printer" type has a generic method that can print out an array of types onto the console. This type is consumed from J#, providing different constructed types.
A good beginning makes a good ending

Quick Reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it has been approved by a moderator.

Name:
Email:
Verification:
Please leave this box empty:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

Shortcuts: ALT+S post or ALT+P preview