Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
QuestionInterfaces and Casting - I'm struggling. Pin
stovesy24-Jun-08 23:57
stovesy24-Jun-08 23:57 
AnswerRe: Interfaces and Casting - I'm struggling. Pin
leppie25-Jun-08 2:11
leppie25-Jun-08 2:11 
GeneralRe: Interfaces and Casting - I'm struggling. Pin
stovesy25-Jun-08 2:27
stovesy25-Jun-08 2:27 
GeneralRe: Interfaces and Casting - I'm struggling. Pin
leppie25-Jun-08 4:51
leppie25-Jun-08 4:51 
GeneralRe: Interfaces and Casting - I'm struggling. Pin
stovesy25-Jun-08 5:33
stovesy25-Jun-08 5:33 
AnswerRe: Interfaces and Casting - I'm struggling. Pin
leppie25-Jun-08 4:54
leppie25-Jun-08 4:54 
GeneralRe: Interfaces and Casting - I'm struggling. Pin
stovesy25-Jun-08 5:36
stovesy25-Jun-08 5:36 
GeneralRe: Interfaces and Casting - I'm struggling. Pin
leppie25-Jun-08 5:43
leppie25-Jun-08 5:43 
stovesy wrote:
We're getting to the crux of the matter.


Indeed Smile | :)

stovesy wrote:
What you suggest does work, but I don't know the type of the generic class, only that it derives from IBusinessObjectBase

So when I try ...(customerFactory is IFactoryBase).... it fails.


Why not make IFactoryBase non-generic, and expose the non-generic properties/methods you need to access? Else create a non-generic IFactoryBaseBase interface Smile | :)

xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008)

GeneralRe: Interfaces and Casting - I'm struggling. Pin
stovesy25-Jun-08 5:54
stovesy25-Jun-08 5:54 
AnswerRe: Interfaces and Casting - I'm struggling. Pin
Mark Churchill25-Jun-08 15:35
Mark Churchill25-Jun-08 15:35 
GeneralRe: Interfaces and Casting - I'm struggling. Pin
stovesy25-Jun-08 22:07
stovesy25-Jun-08 22:07 
Questionfilesystemwatcher Pin
arkiboys24-Jun-08 23:39
arkiboys24-Jun-08 23:39 
AnswerRe: filesystemwatcher Pin
leppie25-Jun-08 2:17
leppie25-Jun-08 2:17 
AnswerRe: filesystemwatcher Pin
Michael Bookatz25-Jun-08 2:42
Michael Bookatz25-Jun-08 2:42 
QuestionRegex.Split with a pipe | as separator Pin
GDavy24-Jun-08 23:38
GDavy24-Jun-08 23:38 
AnswerRe: Regex.Split with a pipe | as separator Pin
Guffa25-Jun-08 0:09
Guffa25-Jun-08 0:09 
GeneralRe: Regex.Split with a pipe | as separator Pin
GDavy25-Jun-08 0:19
GDavy25-Jun-08 0:19 
Questioncannot implicitly convert type 'int' to 'string' Pin
twistz24-Jun-08 23:34
twistz24-Jun-08 23:34 
AnswerRe: cannot implicitly convert type 'int' to 'string' Pin
Christian Graus24-Jun-08 23:46
protectorChristian Graus24-Jun-08 23:46 
GeneralRe: cannot implicitly convert type 'int' to 'string' Pin
leppie25-Jun-08 2:14
leppie25-Jun-08 2:14 
GeneralRe: cannot implicitly convert type 'int' to 'string' Pin
Christian Graus25-Jun-08 12:05
protectorChristian Graus25-Jun-08 12:05 
AnswerRe: cannot implicitly convert type 'int' to 'string' Pin
Harvey Saayman24-Jun-08 23:47
Harvey Saayman24-Jun-08 23:47 
AnswerRe: cannot implicitly convert type 'int' to 'string' Pin
SteveNY25-Jun-08 3:59
SteveNY25-Jun-08 3:59 
Questionhowto: Image right-click context menu upload Pin
Sazarella24-Jun-08 23:24
Sazarella24-Jun-08 23:24 
AnswerRe: howto: Image right-click context menu upload Pin
Christian Graus24-Jun-08 23:34
protectorChristian Graus24-Jun-08 23:34 

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.