Click here to Skip to main content
12,700,558 members (34,042 online)
   

C#

 
GeneralRe: How to convert string to Datetime including milliseconds Pin
BobJanova11-Nov-12 23:10
memberBobJanova11-Nov-12 23:10 
Questionhow to sort Datalist using Dropdown which is not in the datalist control Pin
sreerajsn1237-Nov-12 22:19
membersreerajsn1237-Nov-12 22:19 
Questiondatagridview child rows Pin
mynamearan7-Nov-12 21:18
membermynamearan7-Nov-12 21:18 
AnswerRe: datagridview child rows Pin
Wayne Gaylard7-Nov-12 22:14
mentorWayne Gaylard7-Nov-12 22:14 
GeneralRe: datagridview child rows Pin
Mycroft Holmes7-Nov-12 23:08
memberMycroft Holmes7-Nov-12 23:08 
GeneralRe: datagridview child rows Pin
Wayne Gaylard7-Nov-12 23:32
mentorWayne Gaylard7-Nov-12 23:32 
QuestionC# linq to sql default problem Pin
sc steinhayse7-Nov-12 13:57
membersc steinhayse7-Nov-12 13:57 
AnswerRe: C# linq to sql default problem Pin
Mycroft Holmes7-Nov-12 14:12
memberMycroft Holmes7-Nov-12 14:12 
GeneralRe: C# linq to sql default problem Pin
sc steinhayse7-Nov-12 19:14
membersc steinhayse7-Nov-12 19:14 
GeneralRe: C# linq to sql default problem Pin
Mycroft Holmes7-Nov-12 19:26
memberMycroft Holmes7-Nov-12 19:26 
AnswerRe: C# linq to sql default problem Pin
jschell8-Nov-12 9:49
memberjschell8-Nov-12 9:49 
QuestionReplicate a class from an assempli and add a new constructor Pin
TheGermoz7-Nov-12 12:45
memberTheGermoz7-Nov-12 12:45 
AnswerRe: Replicate a class from an assempli and add a new constructor Pin
Mycroft Holmes7-Nov-12 14:07
memberMycroft Holmes7-Nov-12 14:07 
AnswerRe: Replicate a class from an assempli and add a new constructor Pin
DaveyM697-Nov-12 19:42
mentorDaveyM697-Nov-12 19:42 
If the class is a class (and not a struct) and isn't sealed then you can inherit from it:
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:
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
TheGermoz7-Nov-12 23:41
memberTheGermoz7-Nov-12 23:41 
GeneralRe: Replicate a class from an assempli and add a new constructor Pin
DaveyM698-Nov-12 19:39
mentorDaveyM698-Nov-12 19:39 
GeneralRe: Replicate a class from an assempli and add a new constructor Pin
Andy4118-Nov-12 21:53
memberAndy4118-Nov-12 21:53 
QuestionHow to structure my application Pin
ASOSEA7-Nov-12 2:11
memberASOSEA7-Nov-12 2:11 
AnswerRe: How to structure my application Pin
Pete O'Hanlon7-Nov-12 2:34
protectorPete O'Hanlon7-Nov-12 2:34 
GeneralRe: How to structure my application Pin
ASOSEA7-Nov-12 3:53
memberASOSEA7-Nov-12 3:53 
AnswerRe: How to structure my application Pin
Mycroft Holmes7-Nov-12 12:34
memberMycroft Holmes7-Nov-12 12:34 
QuestionConvert PPT to image Pin
er.neelkamal7-Nov-12 1:54
memberer.neelkamal7-Nov-12 1:54 
Questionhow to report the single record into crystal report Pin
sri apple6-Nov-12 21:02
membersri apple6-Nov-12 21:02 
AnswerRe: how to report the single record into crystal report Pin
Mycroft Holmes6-Nov-12 23:23
memberMycroft Holmes6-Nov-12 23:23 
QuestionSocket performance Pin
devvvy6-Nov-12 17:54
memberdevvvy6-Nov-12 17:54 
QuestionRe: Socket performance Pin
Richard MacCutchan6-Nov-12 22:44
mvpRichard MacCutchan6-Nov-12 22:44 
AnswerRe: Socket performance Pin
devvvy6-Nov-12 23:12
memberdevvvy6-Nov-12 23:12 
GeneralRe: Socket performance Pin
Richard MacCutchan6-Nov-12 23:28
mvpRichard MacCutchan6-Nov-12 23:28 
GeneralRe: Socket performance Pin
devvvy7-Nov-12 16:27
memberdevvvy7-Nov-12 16:27 
GeneralRe: Socket performance Pin
Richard MacCutchan7-Nov-12 22:29
mvpRichard MacCutchan7-Nov-12 22:29 
GeneralRe: Socket performance Pin
devvvy7-Nov-12 23:18
memberdevvvy7-Nov-12 23:18 
GeneralRe: Socket performance Pin
Pete O'Hanlon7-Nov-12 23:26
protectorPete O'Hanlon7-Nov-12 23:26 
GeneralRe: Socket performance Pin
devvvy7-Nov-12 23:29
memberdevvvy7-Nov-12 23:29 
GeneralRe: Socket performance Pin
Richard MacCutchan8-Nov-12 1:05
mvpRichard MacCutchan8-Nov-12 1:05 
AnswerRe: Socket performance Pin
Dave Kreskowiak7-Nov-12 3:17
mvpDave Kreskowiak7-Nov-12 3:17 
GeneralRe: Socket performance Pin
devvvy7-Nov-12 16:24
memberdevvvy7-Nov-12 16:24 
GeneralRe: Socket performance Pin
Dave Kreskowiak8-Nov-12 2:41
mvpDave Kreskowiak8-Nov-12 2:41 
GeneralRe: Socket performance Pin
devvvy8-Nov-12 14:35
memberdevvvy8-Nov-12 14:35 
GeneralRe: Socket performance Pin
Dave Kreskowiak8-Nov-12 15:46
mvpDave Kreskowiak8-Nov-12 15:46 
GeneralRe: Socket performance Pin
devvvy8-Nov-12 15:52
memberdevvvy8-Nov-12 15:52 
AnswerRe: Socket performance Pin
jschell7-Nov-12 8:53
memberjschell7-Nov-12 8:53 
GeneralRe: Socket performance Pin
devvvy7-Nov-12 16:25
memberdevvvy7-Nov-12 16:25 
GeneralRe: Socket performance Pin
jschell8-Nov-12 9:06
memberjschell8-Nov-12 9:06 
GeneralRe: Socket performance Pin
devvvy8-Nov-12 14:34
memberdevvvy8-Nov-12 14:34 
QuestionMicrosoft Reports and Page Break insertion. Pin
minnie mouse6-Nov-12 10:19
memberminnie mouse6-Nov-12 10:19 
QuestionUsing same class name from different assembly Pin
TheGermoz6-Nov-12 10:16
memberTheGermoz6-Nov-12 10:16 
AnswerRe: Using same class name from different assembly Pin
Eddy Vluggen6-Nov-12 10:21
memberEddy Vluggen6-Nov-12 10:21 
GeneralRe: Using same class name from different assembly Pin
TheGermoz6-Nov-12 10:34
memberTheGermoz6-Nov-12 10:34 
AnswerRe: Using same class name from different assembly Pin
minnie mouse6-Nov-12 10:39
memberminnie mouse6-Nov-12 10:39 
GeneralRe: Using same class name from different assembly Pin
TheGermoz6-Nov-12 19:23
memberTheGermoz6-Nov-12 19:23 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 23 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid