August 10th, 2009, 04:31 PM
monalin,
Sorry, this is a bit too advanced for me to understand properly. It looks interesting. Is this a 'custom' convertor to cast the generic classes? The normal convert only works with Sytem...
August 10th, 2009, 04:17 PM
This solves my 'problem'. The code below uses an interface as a common type for the generic classes using the same original example. Again Win form with button and button click.
Thanks for all who...
August 10th, 2009, 04:02 PM
OK, this code compiles. WinForm with button and button click..
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using...
August 10th, 2009, 03:46 PM
Thanks for your reply Mutant Fruit,
See also my reply to monalin, I do not really have control over the base classes. I was more interested in being able to cast a 'Generic' class instance via a...
August 10th, 2009, 03:41 PM
Thanks for the reply monalin,
This was just a crude as simple as possible example typed on the fly. Sorry about the syntax errors.
To give more info. I am working with the Csla.Net framework....
August 10th, 2009, 10:30 AM
Hi,
I am a newbie to c# and have the following problem to do with generic type casting to use 'generically' see '***' below
Probably best to explain this one with some simple code..
...
...