Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
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 
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 
AnswerRe: Understanding IOC Pin
Gerry Schmitz4-Apr-17 4:46
mveGerry Schmitz4-Apr-17 4:46 
AnswerRe: Understanding IOC Pin
Matthew Dennis4-Apr-17 6:43
sysadminMatthew Dennis4-Apr-17 6:43 
IOC does not preclude specifying concrete classes as parameter to be injected in the constructor, although some IOC container implementations my not support this.

The IOC container is basically a super factory that can provide instances of classes or interfaces that have been registered with the IOC container or that the container can determine how to build. The Munq IOC Container, for example, can instantiate concrete classes even if they have not been registered, as long as all of the constructor parameters can be provided from the IOC Container.

In most IOC Containers, you can register a class that, implements either an Interface or a Base Class, to be provided when either the Interface or Base Class is requested.

This means your code now says "I need an instance of class X and I don't care or want to know how to build it, just give it to me" rather than "I need an instance of class X so I'll build up all itsdependencies, and their dependencies to do that. God help me if the dependency hierarchy changes".
"Time flies like an arrow. Fruit flies like a banana."

QuestionWindows Application C# Pin
Member 130625052-Apr-17 9:38
Member 130625052-Apr-17 9:38 
AnswerRe: Windows Application C# Pin
OriginalGriff2-Apr-17 10:15
mveOriginalGriff2-Apr-17 10:15 
AnswerRe: Windows Application C# Pin
Michael_Davies2-Apr-17 10:16
Michael_Davies2-Apr-17 10:16 
AnswerRe: Windows Application C# Pin
ZurdoDev3-Apr-17 1:33
professionalZurdoDev3-Apr-17 1:33 
QuestionWrong absolute position of a QRcode Pin
advn1-Apr-17 4:23
advn1-Apr-17 4:23 
AnswerRe: Wrong absolute position of a QRcode Pin
ZurdoDev3-Apr-17 3:43
professionalZurdoDev3-Apr-17 3:43 
QuestionSearching & Playing Itunes music(streaming) tracks Pin
Member 130990653-Apr-17 2:54
Member 130990653-Apr-17 2:54 
Questionrecreating excel spreadsheet in visual studio Pin
ef3731-Mar-17 3:55
ef3731-Mar-17 3:55 
AnswerRe: recreating excel spreadsheet in visual studio Pin
Dave Kreskowiak31-Mar-17 4:34
mveDave Kreskowiak31-Mar-17 4:34 
QuestionQueried result to ListBox in PartialView Pin
sunsher31-Mar-17 1:39
sunsher31-Mar-17 1:39 
SuggestionRe: Queried result to ListBox in PartialView Pin
CHill6031-Mar-17 2:01
mveCHill6031-Mar-17 2:01 
GeneralRe: Queried result to ListBox in PartialView Pin
Richard Deeming31-Mar-17 2:17
mveRichard Deeming31-Mar-17 2:17 
Rant[REPOST] Queried result to ListBox in PartialView Pin
Richard Deeming31-Mar-17 2:18
mveRichard Deeming31-Mar-17 2:18 
QuestionDrag and drop items between two listViews ? Pin
Member 245846730-Mar-17 16:57
Member 245846730-Mar-17 16:57 
AnswerRe: Drag and drop items between two listViews ? Pin
Mycroft Holmes30-Mar-17 17:15
professionalMycroft Holmes30-Mar-17 17:15 
QuestionWhat is the difference between hashing or encryption a data Pin
Tridip Bhattacharjee30-Mar-17 0:09
professionalTridip Bhattacharjee30-Mar-17 0:09 
AnswerRe: What is the difference between hashing or encryption a data Pin
Chris Quinn30-Mar-17 0:24
Chris Quinn30-Mar-17 0: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.