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

C#

 
GeneralRe: HOW TO FIX THIS EVERYTIME I ADD DATA IN MY DATA TABLE THE LASTROW AND FIRSTROW ARE THES SAME Pin
Not Active14-May-10 1:20
mentorNot Active14-May-10 1:20 
AnswerRe: HOW TO FIX THIS EVERYTIME I ADD DATA IN MY DATA TABLE THE LASTROW AND FIRSTROW ARE THES SAME Pin
#realJSOP14-May-10 1:36
mve#realJSOP14-May-10 1:36 
AnswerRe: HOW TO FIX THIS EVERYTIME I ADD DATA IN MY DATA TABLE THE LASTROW AND FIRSTROW ARE THES SAME Pin
Kalvin @ Work14-May-10 9:27
Kalvin @ Work14-May-10 9:27 
Questioncontrol border settings Pin
xilefxilef13-May-10 13:36
xilefxilef13-May-10 13:36 
AnswerRe: control border settings Pin
Henry Minute14-May-10 1:58
Henry Minute14-May-10 1:58 
QuestionFTP via proxy Pin
Gavs4313-May-10 9:46
Gavs4313-May-10 9:46 
AnswerRe: FTP via proxy Pin
Luc Pattyn13-May-10 10:09
sitebuilderLuc Pattyn13-May-10 10:09 
QuestionCreate an object of an inherited class Pin
popchecker13-May-10 7:40
popchecker13-May-10 7:40 
Hi All,

I am developing a C# library. In that library there is an abstract method in an abstract class which let the users to implement it. Now I want to call that method in some other parts of my library. My problem is that the library aware only about the abstract class not about the class which user implemented. This is something I want to implement.

C#
abstract class MyBase
{
    abstract void DoSomething();
}

class AnotherPartOfLibrary
{
    public void AnotherFunction()
    {
        //here I want to call MyBase.DoSomething()
    }
}

/* User Implementation of my library */
class UserImplementation : MyBase
{
    public void DoSomething(){}
}

All I need to let the user to extent my library and I want to call these extended functionalities in some parts of library. One method I found that to force the user for an entry of user class name in configuration file. So that I can create an instance of user class using reflection. But is there any other methods to do this?

Thanks & Regards,
Thomas
AnswerRe: Create an object of an inherited class Pin
T M Gray13-May-10 8:01
T M Gray13-May-10 8:01 
GeneralRe: Create an object of an inherited class Pin
popchecker13-May-10 15:15
popchecker13-May-10 15:15 
AnswerRe: Create an object of an inherited class Pin
William Winner13-May-10 8:05
William Winner13-May-10 8:05 
GeneralRe: Create an object of an inherited class Pin
popchecker13-May-10 15:31
popchecker13-May-10 15:31 
GeneralRe: Create an object of an inherited class Pin
DaveyM6913-May-10 22:51
professionalDaveyM6913-May-10 22:51 
AnswerRe: Create an object of an inherited class Pin
DaveyM6913-May-10 9:22
professionalDaveyM6913-May-10 9:22 
QuestionHow to get the row number from a detail view [modified] Pin
gmhanna13-May-10 5:02
gmhanna13-May-10 5:02 
AnswerRe: How to get the row number from a non-grid view Pin
Abhinav S13-May-10 5:21
Abhinav S13-May-10 5:21 
QuestionRe: How to get the row number from a non-grid view Pin
gmhanna13-May-10 7:02
gmhanna13-May-10 7:02 
QuestionNon blocking TCP Pin
TimSWatson13-May-10 3:51
TimSWatson13-May-10 3:51 
AnswerRe: Non blocking TCP Pin
Alex Manolescu13-May-10 8:48
Alex Manolescu13-May-10 8:48 
AnswerRe: Non blocking TCP Pin
jschell13-May-10 8:56
jschell13-May-10 8:56 
Questionhow to return sublist Pin
igalep13213-May-10 3:30
igalep13213-May-10 3:30 
AnswerRe: how to return sublist Pin
Nuri Ismail13-May-10 3:44
Nuri Ismail13-May-10 3:44 
GeneralRe: how to return sublist Pin
igalep13213-May-10 3:53
igalep13213-May-10 3:53 
GeneralRe: how to return sublist [modified] Pin
Nuri Ismail13-May-10 4:42
Nuri Ismail13-May-10 4:42 
GeneralRe: how to return sublist Pin
igalep13216-May-10 11:26
igalep13216-May-10 11:26 

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.