Re: Strong Typed Collections

Tech-Archive recommends: Fix windows errors by optimizing your registry



ok...i see that i can use system.collections.generic namespace for
this. in my case, i want to use a key/value pair so IDictionary< int,
MyClass > is what i use. The problem is, how do i cast a hashtable to
this?
If that can't be done, how can i instantiate and add values to a
collection declared as IDictionary< int, MyCalss>.

Also, is there a way to declare a type or alias for "IDictionary<int,
MyClass>", so i don't have to type that declaration everytime i need to
declare a variable of that particular collection?

.



Relevant Pages

  • Re: Strong Typed Collections
    ... Ambiguity has a certain quality to it. ... > MyClass> is what i use. ... > collection declared as IDictionary< int, ... > Also, is there a way to declare a type or alias for "IDictionary<int, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Really tough ADO Stored Procedure Question. Please Help!!!
    ... @lScenarioID_CopyFrom int, ... DECLARE @ErrMSG varchar--This is the max msg size ... ROLLBACK TRANSACTION ... SELECT @lRowCountHolder = MIN ...
    (microsoft.public.sqlserver.odbc)
  • Re: Really tough ADO Stored Procedure Question. Please Help!!!
    ... @lScenarioID_CopyFrom int, ... DECLARE @ErrMSG varchar--This is the max msg size ... ROLLBACK TRANSACTION ... SELECT @lRowCountHolder = MIN ...
    (microsoft.public.sqlserver.programming)
  • Re: Really tough ADO Stored Procedure Question. Please Help!!!
    ... @lScenarioID_CopyFrom int, ... DECLARE @ErrMSG varchar--This is the max msg size ... ROLLBACK TRANSACTION ... SELECT @lRowCountHolder = MIN ...
    (microsoft.public.sqlserver.server)
  • Re: Maths Formula Question
    ... And some times when copy and past happens Duplicate InstructionOrder numbers ... [ScenarioID] ... DECLARE @lScenarioID int ...
    (microsoft.public.vb.general.discussion)