Click here to Skip to main content
15,881,852 members
Home / Discussions / C#
   

C#

 
QuestionC# linq to sql default problem Pin
sc steinhayse7-Nov-12 12:57
sc steinhayse7-Nov-12 12:57 
AnswerRe: C# linq to sql default problem Pin
Mycroft Holmes7-Nov-12 13:12
professionalMycroft Holmes7-Nov-12 13:12 
GeneralRe: C# linq to sql default problem Pin
sc steinhayse7-Nov-12 18:14
sc steinhayse7-Nov-12 18:14 
GeneralRe: C# linq to sql default problem Pin
Mycroft Holmes7-Nov-12 18:26
professionalMycroft Holmes7-Nov-12 18:26 
AnswerRe: C# linq to sql default problem Pin
jschell8-Nov-12 8:49
jschell8-Nov-12 8:49 
QuestionReplicate a class from an assempli and add a new constructor Pin
PozzaVecia7-Nov-12 11:45
PozzaVecia7-Nov-12 11:45 
AnswerRe: Replicate a class from an assempli and add a new constructor Pin
Mycroft Holmes7-Nov-12 13:07
professionalMycroft Holmes7-Nov-12 13:07 
AnswerRe: Replicate a class from an assempli and add a new constructor Pin
DaveyM697-Nov-12 18:42
professionalDaveyM697-Nov-12 18:42 
If the class is a class (and not a struct) and isn't sealed then you can inherit from it:
C#
public class YourClass : OriginalClass
{
    // Recreate the constructors as they aren't inherited
    public YourClass(...) : base(...)
    { }

    // Add whatever you want...
}

If it's a struct or a sealed class then you will need to create a wrapper and replicate all the constructors/properties/methods etc you require:
C#
public WrapperClass
{
    private WrappedType value;

    public WrapperClass(...)
    {
        value = new WrappedType(...);
    }

    public void DoSomething()
    {
        value.DoSomething();
    }

    // Add whatever you want...
}

Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)



GeneralRe: Replicate a class from an assempli and add a new constructor Pin
PozzaVecia7-Nov-12 22:41
PozzaVecia7-Nov-12 22:41 
GeneralRe: Replicate a class from an assempli and add a new constructor Pin
DaveyM698-Nov-12 18:39
professionalDaveyM698-Nov-12 18:39 
GeneralRe: Replicate a class from an assempli and add a new constructor Pin
Andy4118-Nov-12 20:53
Andy4118-Nov-12 20:53 
QuestionHow to structure my application Pin
ASOSEA7-Nov-12 1:11
ASOSEA7-Nov-12 1:11 
AnswerRe: How to structure my application Pin
Pete O'Hanlon7-Nov-12 1:34
mvePete O'Hanlon7-Nov-12 1:34 
GeneralRe: How to structure my application Pin
ASOSEA7-Nov-12 2:53
ASOSEA7-Nov-12 2:53 
AnswerRe: How to structure my application Pin
Mycroft Holmes7-Nov-12 11:34
professionalMycroft Holmes7-Nov-12 11:34 
QuestionConvert PPT to image Pin
Er. Neel Kamal7-Nov-12 0:54
professionalEr. Neel Kamal7-Nov-12 0:54 
Questionhow to report the single record into crystal report Pin
sri apple6-Nov-12 20:02
sri apple6-Nov-12 20:02 
AnswerRe: how to report the single record into crystal report Pin
Mycroft Holmes6-Nov-12 22:23
professionalMycroft Holmes6-Nov-12 22:23 
QuestionSocket performance Pin
devvvy6-Nov-12 16:54
devvvy6-Nov-12 16:54 
QuestionRe: Socket performance Pin
Richard MacCutchan6-Nov-12 21:44
mveRichard MacCutchan6-Nov-12 21:44 
AnswerRe: Socket performance Pin
devvvy6-Nov-12 22:12
devvvy6-Nov-12 22:12 
GeneralRe: Socket performance Pin
Richard MacCutchan6-Nov-12 22:28
mveRichard MacCutchan6-Nov-12 22:28 
GeneralRe: Socket performance Pin
devvvy7-Nov-12 15:27
devvvy7-Nov-12 15:27 
GeneralRe: Socket performance Pin
Richard MacCutchan7-Nov-12 21:29
mveRichard MacCutchan7-Nov-12 21:29 
GeneralRe: Socket performance Pin
devvvy7-Nov-12 22:18
devvvy7-Nov-12 22:18 

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.