CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: SiegfriedN

Search: Search took 0.01 seconds.

  1. Re: Generic class instance casting to generic class type

    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...
  2. Re: Generic class instance casting to generic class type

    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...
  3. Re: Generic class instance casting to generic class type

    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...
  4. Re: Generic class instance casting to generic class type

    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...
  5. Re: Generic class instance casting to generic class type

    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....
  6. Generic class instance casting to generic class type

    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..

    ...
    ...
Results 1 to 6 of 6





Click Here to Expand Forum to Full Width

Featured