Click here to Skip to main content
15,908,015 members
Home / Discussions / C#
   

C#

 
QuestionTask.Wait() -Why?? Pin
Kevin Marois4-Apr-17 6:54
professionalKevin Marois4-Apr-17 6:54 
AnswerRe: Task.Wait() -Why?? Pin
Pete O'Hanlon4-Apr-17 7:00
mvePete O'Hanlon4-Apr-17 7:00 
GeneralRe: Task.Wait() -Why?? Pin
Kevin Marois4-Apr-17 7:19
professionalKevin Marois4-Apr-17 7:19 
GeneralRe: Task.Wait() -Why?? Pin
Pete O'Hanlon4-Apr-17 7:26
mvePete O'Hanlon4-Apr-17 7:26 
GeneralRe: Task.Wait() -Why?? Pin
Richard Deeming4-Apr-17 7:38
mveRichard Deeming4-Apr-17 7:38 
GeneralRe: Task.Wait() -Why?? Pin
Pete O'Hanlon4-Apr-17 7:40
mvePete O'Hanlon4-Apr-17 7:40 
AnswerRe: Task.Wait() -Why?? Pin
Richard Deeming4-Apr-17 7:48
mveRichard Deeming4-Apr-17 7:48 
GeneralRe: Task.Wait() -Why?? Pin
Kevin Marois4-Apr-17 7:52
professionalKevin Marois4-Apr-17 7:52 
GeneralRe: Task.Wait() -Why?? Pin
Richard Deeming4-Apr-17 8:04
mveRichard Deeming4-Apr-17 8:04 
GeneralRe: Task.Wait() -Why?? Pin
Tridip Bhattacharjee5-Apr-17 23:30
professionalTridip Bhattacharjee5-Apr-17 23:30 
GeneralRe: Task.Wait() -Why?? Pin
Richard Deeming6-Apr-17 1:30
mveRichard Deeming6-Apr-17 1:30 
Questionin which scenario people use factory design patter Pin
Tridip Bhattacharjee4-Apr-17 1:58
professionalTridip Bhattacharjee4-Apr-17 1:58 
AnswerRe: in which scenario people use factory design patter Pin
Eddy Vluggen4-Apr-17 2:29
professionalEddy Vluggen4-Apr-17 2:29 
GeneralRe: in which scenario people use factory design patter Pin
Tridip Bhattacharjee4-Apr-17 3:48
professionalTridip Bhattacharjee4-Apr-17 3:48 
GeneralRe: in which scenario people use factory design patter Pin
Pete O'Hanlon4-Apr-17 4:14
mvePete O'Hanlon4-Apr-17 4:14 
GeneralRe: in which scenario people use factory design patter Pin
Gerry Schmitz4-Apr-17 4:36
mveGerry Schmitz4-Apr-17 4:36 
GeneralRe: in which scenario people use factory design patter Pin
Eddy Vluggen4-Apr-17 5:24
professionalEddy Vluggen4-Apr-17 5:24 
QuestionStrange Problem Loading Config File Pin
Kevin Marois3-Apr-17 7:51
professionalKevin Marois3-Apr-17 7:51 
AnswerRe: Strange Problem Loading Config File Pin
Richard Deeming3-Apr-17 8:03
mveRichard Deeming3-Apr-17 8:03 
GeneralRe: Strange Problem Loading Config File Pin
Kevin Marois3-Apr-17 8:07
professionalKevin Marois3-Apr-17 8:07 
QuestionUnderstanding IOC Pin
Liagapi2-Apr-17 21:06
Liagapi2-Apr-17 21:06 
I've recently read about the Inversion of Control (IOC) principle and I have a few questions I'd like to have answered. I've read that in order to implement the principle of IOC, one must not define a class and pass in concrete objects as its constructor's parameters but one must instead use interfaces as its constructor's parameters.

My first question is can I implement IOC by defining a class with virtual classes as its constructor's parameters instead of interfaces. After all the whole reason behind using interfaces is to decouple the class from its dependencies and virtual classes can pretty much do that.

My second question is can I use abstract classes as the parameters instead of interfaces.

Thanks in advance for your reply.

modified 3-Apr-17 3:37am.

AnswerRe: Understanding IOC Pin
Pete O'Hanlon2-Apr-17 22:41
mvePete O'Hanlon2-Apr-17 22:41 
GeneralRe: Understanding IOC Pin
Liagapi3-Apr-17 16:32
Liagapi3-Apr-17 16:32 
GeneralRe: Understanding IOC Pin
Pete O'Hanlon3-Apr-17 20:41
mvePete O'Hanlon3-Apr-17 20:41 
AnswerRe: Understanding IOC Pin
Bernhard Hiller3-Apr-17 21:24
Bernhard Hiller3-Apr-17 21:24 

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.