Click here to Skip to main content
15,907,329 members
Home / Discussions / C#
   

C#

 
AnswerRe: Assigning the result of an SQL ExecuteScalar() to an int? Pin
Pete O'Hanlon15-Jan-07 1:57
mvePete O'Hanlon15-Jan-07 1:57 
GeneralRe: Assigning the result of an SQL ExecuteScalar() to an int? Pin
aSarafian15-Jan-07 2:30
aSarafian15-Jan-07 2:30 
GeneralRe: Assigning the result of an SQL ExecuteScalar() to an int? Pin
Colin Angus Mackay15-Jan-07 2:48
Colin Angus Mackay15-Jan-07 2:48 
GeneralRe: Assigning the result of an SQL ExecuteScalar() to an int? Pin
aSarafian15-Jan-07 5:04
aSarafian15-Jan-07 5:04 
Questionregular expressions problem Pin
rafiki27015-Jan-07 1:05
rafiki27015-Jan-07 1:05 
AnswerRe: regular expressions problem Pin
Stefan Troschuetz15-Jan-07 3:07
Stefan Troschuetz15-Jan-07 3:07 
QuestionGeneric Dictionary: Dictionary in a Dictionary? Pin
olethroz15-Jan-07 0:33
olethroz15-Jan-07 0:33 
AnswerRe: Generic Dictionary: Dictionary in a Dictionary? Pin
aSarafian15-Jan-07 1:12
aSarafian15-Jan-07 1:12 
First of all have you thought of subclassing the Dictionary<string,YourObject>?

For what you are asking two are the simplest ways i see based on what i have understood.

You can use a general function with parameter object or a common base object like BaseMemeberShip for all possible MemberShip objects to be added. Then by using the is Address for example determine to which dictionary you will add it. You can also use GetType()

A second way which probably is the same from the functional scope, is to implement an interface which somehow signals what kind of Membership Object it is you are adding.
GeneralRe: Generic Dictionary: Dictionary in a Dictionary? Pin
olethroz15-Jan-07 9:03
olethroz15-Jan-07 9:03 
Questionchoose file dialog box Pin
ALAQUNAIBI14-Jan-07 23:18
ALAQUNAIBI14-Jan-07 23:18 
AnswerRe: choose file dialog box Pin
Christian Graus14-Jan-07 23:45
protectorChristian Graus14-Jan-07 23:45 
Question.net 2.0 - developing webservice Pin
fmardani14-Jan-07 23:17
fmardani14-Jan-07 23:17 
AnswerRe: .net 2.0 - developing webservice Pin
Christian Graus14-Jan-07 23:51
protectorChristian Graus14-Jan-07 23:51 
Questionpassword generation Pin
quiteSmart14-Jan-07 23:05
quiteSmart14-Jan-07 23:05 
AnswerRe: password generation Pin
Russell Jones14-Jan-07 23:10
Russell Jones14-Jan-07 23:10 
GeneralRe: password generation Pin
Muammar©14-Jan-07 23:23
Muammar©14-Jan-07 23:23 
GeneralRe: password generation Pin
Russell Jones14-Jan-07 23:33
Russell Jones14-Jan-07 23:33 
GeneralRe: password generation Pin
quiteSmart14-Jan-07 23:46
quiteSmart14-Jan-07 23:46 
GeneralRe: password generation Pin
Russell Jones14-Jan-07 23:53
Russell Jones14-Jan-07 23:53 
AnswerRe: password generation Pin
V.15-Jan-07 1:18
professionalV.15-Jan-07 1:18 
AnswerRe: password generation Pin
Guffa15-Jan-07 2:06
Guffa15-Jan-07 2:06 
AnswerRe: password generation Pin
szukuro15-Jan-07 2:28
szukuro15-Jan-07 2:28 
GeneralRe: password generation Pin
quiteSmart15-Jan-07 2:45
quiteSmart15-Jan-07 2:45 
GeneralRe: password generation Pin
szukuro15-Jan-07 2:51
szukuro15-Jan-07 2:51 
Questionunable to run process Pin
lucluv14-Jan-07 23:01
lucluv14-Jan-07 23:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.