Click here to Skip to main content
15,900,254 members
Home / Discussions / C#
   

C#

 
QuestionIdea for reading ad writing at the same time Pin
Admin88710-Feb-09 1:38
Admin88710-Feb-09 1:38 
AnswerRe: Idea for reading ad writing at the same time Pin
musefan10-Feb-09 1:45
musefan10-Feb-09 1:45 
GeneralRe: Idea for reading ad writing at the same time Pin
Admin88710-Feb-09 2:01
Admin88710-Feb-09 2:01 
GeneralRe: Idea for reading ad writing at the same time Pin
musefan10-Feb-09 2:09
musefan10-Feb-09 2:09 
GeneralRe: Idea for reading ad writing at the same time Pin
Admin88710-Feb-09 2:22
Admin88710-Feb-09 2:22 
GeneralRe: Idea for reading ad writing at the same time Pin
musefan10-Feb-09 2:31
musefan10-Feb-09 2:31 
QuestionObject casting Pin
Mycroft Holmes10-Feb-09 1:20
professionalMycroft Holmes10-Feb-09 1:20 
AnswerRe: Object casting Pin
SeMartens10-Feb-09 2:14
SeMartens10-Feb-09 2:14 
Hi,

you should use interfaces. Define a Credentials-interface, which will be accessible by all objects (do this by putting the interface into a seperate assembly). Let your Credentials-class implement the interface. Within all objects you can now use the interface to interact with the object, without knowing how it is implemented (how it should be within OOP).

interface ICredentials {
 // put the declaration of all methods/properties here
}


Your credentials-class:

class Credentials:ICredentials {
  // implement the interface here
}


How to use it:
DAL.Server = MyCreds.Server


Hope this helps.

Regards
Sebastian

It's not a bug, it's a feature!

Check out my CodeProject article Permission-by-aspect.

Me in Softwareland.

GeneralRe: Object casting Pin
Mycroft Holmes10-Feb-09 12:08
professionalMycroft Holmes10-Feb-09 12:08 
GeneralRe: Object casting Pin
Mycroft Holmes10-Feb-09 13:20
professionalMycroft Holmes10-Feb-09 13:20 
Questionproblem occurred while working with ce 5. Pin
prasadbuddhika9-Feb-09 23:51
prasadbuddhika9-Feb-09 23:51 
QuestionAssembly.LoadFile Question Pin
Programm3r9-Feb-09 23:07
Programm3r9-Feb-09 23:07 
AnswerRe: Assembly.LoadFile Question Pin
Programm3r9-Feb-09 23:13
Programm3r9-Feb-09 23:13 
GeneralRe: Assembly.LoadFile Question Pin
J4amieC9-Feb-09 23:20
J4amieC9-Feb-09 23:20 
JokeRe: Assembly.LoadFile Question Pin
musefan9-Feb-09 23:27
musefan9-Feb-09 23:27 
GeneralRe: Assembly.LoadFile Question Pin
Pete O'Hanlon9-Feb-09 23:32
mvePete O'Hanlon9-Feb-09 23:32 
GeneralRe: Assembly.LoadFile Question Pin
musefan9-Feb-09 23:35
musefan9-Feb-09 23:35 
QuestionHow to find the child nodes in treeview. Pin
Gonxh Aniket9-Feb-09 23:06
Gonxh Aniket9-Feb-09 23:06 
AnswerRe: How to find the child nodes in treeview. Pin
musefan9-Feb-09 23:12
musefan9-Feb-09 23:12 
AnswerRe: How to find the child nodes in treeview. Pin
Kaushal Arora9-Feb-09 23:30
Kaushal Arora9-Feb-09 23:30 
GeneralRe: How to find the child nodes in treeview. Pin
musefan9-Feb-09 23:45
musefan9-Feb-09 23:45 
AnswerRe: How to find the child nodes in treeview. Pin
Abdul Rahman Hamidy10-Feb-09 1:02
Abdul Rahman Hamidy10-Feb-09 1:02 
QuestionCombobox Selection from Sql Pin
boiDev9-Feb-09 22:44
boiDev9-Feb-09 22:44 
AnswerRe: Combobox Selection from Sql Pin
musefan9-Feb-09 22:59
musefan9-Feb-09 22:59 
GeneralRe: Combobox Selection from Sql Pin
boiDev9-Feb-09 23:56
boiDev9-Feb-09 23:56 

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.