Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

NET.GenericClass - Class: NET.GenericClass
Package: NET

Constructor for NET.GenericClass class

Syntax

genType = NET.GenericClass (className, varargin paramTypes)

Description

genType = NET.GenericClass (className, varargin paramTypes) where className is a fully qualified string with the generic type name, and paramTypes is an optional, variable length (1 to N) list of types for the generic class parameterization. Allowed argument types are: strings with fully qualified parameter type name and instances of the NET.GenericClass class when deeper nested parameterization with another parameterized type is needed.

Examples

Create an instance of System.Collections.Generic.List of System.Collections.Generic.KeyValuePair generic associations where Key is of System.Int32 type and Value is a System.String class with initial storage capacity for 10 key-value pairs.

kvpType = NET.GenericClass('System.Collections.Generic.KeyValuePair',...
  'System.Int32', 'System.String');
kvpList = NET.createGeneric('System.Collections.Generic.List',...
  { kvpType }, 10);

See Also

NET.createGeneric, NET.createArray

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS