Click here to Skip to main content
15,892,072 members
Home / Discussions / C#
   

C#

 
AnswerRe: Checkbox Pin
Eslam Afifi22-Feb-09 19:52
Eslam Afifi22-Feb-09 19:52 
AnswerRe: Checkbox Pin
RobScripta23-Feb-09 7:27
professionalRobScripta23-Feb-09 7:27 
QuestionProblem in Multiple Insertion with TransactionScope. Pin
hdv21222-Feb-09 18:59
hdv21222-Feb-09 18:59 
AnswerRe: Problem in Multiple Insertion with TransactionScope. Pin
dan!sh 22-Feb-09 20:04
professional dan!sh 22-Feb-09 20:04 
GeneralRe: Problem in Multiple Insertion with TransactionScope. Pin
hdv21224-Feb-09 0:06
hdv21224-Feb-09 0:06 
QuestionAbout Restricted method Pin
rajanbabu_03322-Feb-09 18:49
rajanbabu_03322-Feb-09 18:49 
AnswerRe: About Restricted method Pin
ABitSmart22-Feb-09 20:30
ABitSmart22-Feb-09 20:30 
QuestionAbout GetMethods In Reflection Pin
rajanbabu_03322-Feb-09 18:48
rajanbabu_03322-Feb-09 18:48 
Hi,

Please help me for the following issues.

In CSharp GetMethods() is returning all the methods and properties of particular Type instead method alone.

How to get the all the methods of particular Type?It should not contain any get,put properties.

I have a sample CSharp program here....

namespace ReflectionDemo
{
class MyClass
{
public void display()

{}

public int RegisterNumber
{
get
{
return 0;
}
set
{
}
}

class ReflectionDemoClass
{
static void Main(string[] args)
{
MyClass mc = new MyClass();
Type tt = mc.GetType();
MethodInfo[] methInfo1 = tt.GetMethods(BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly);

foreach (MethodInfo mI1 in methInfo1)
{
string methodName = mI1.Name;
System.Console.WriteLine(mI1.Name);
}
}
}

output for this program is :

display
get_RegisterNumber
set_RegisterNumber


Above output have both methods and Properties

but i want to get output : display

Could anyone help me to get this answer(I mean only methods of MyClas not the properties)?

By
Rajanbabu

Rajanbabu
AnswerRe: About GetMethods In Reflection Pin
Calin Tatar22-Feb-09 23:37
Calin Tatar22-Feb-09 23:37 
GeneralRe: About GetMethods In Reflection Pin
rajanbabu_03323-Feb-09 19:44
rajanbabu_03323-Feb-09 19:44 
QuestionMicrosoft Reportviewer question Pin
Rafone22-Feb-09 18:35
Rafone22-Feb-09 18:35 
AnswerRe: Microsoft Reportviewer question Pin
Rafone23-Feb-09 1:25
Rafone23-Feb-09 1:25 
Questionconnecting remote mysql database using c#.net Pin
dilip51422-Feb-09 18:08
dilip51422-Feb-09 18:08 
AnswerRe: connecting remote mysql database using c#.net Pin
Christian Graus22-Feb-09 18:31
protectorChristian Graus22-Feb-09 18:31 
AnswerRe: connecting remote mysql database using c#.net Pin
RobScripta23-Feb-09 7:37
professionalRobScripta23-Feb-09 7:37 
QuestionProgress Bar And Data Process Pin
BlitzPackage22-Feb-09 17:28
BlitzPackage22-Feb-09 17:28 
AnswerRe: Progress Bar And Data Process Pin
Jon Rista22-Feb-09 18:14
Jon Rista22-Feb-09 18:14 
GeneralRe: Progress Bar And Data Process Pin
BlitzPackage22-Feb-09 19:21
BlitzPackage22-Feb-09 19:21 
QuestionWorking with multiple threads. Pin
CodingLover22-Feb-09 16:54
CodingLover22-Feb-09 16:54 
AnswerRe: Working with multiple threads. Pin
ABitSmart22-Feb-09 17:06
ABitSmart22-Feb-09 17:06 
GeneralRe: Working with multiple threads. Pin
CodingLover22-Feb-09 21:06
CodingLover22-Feb-09 21:06 
QuestionHow to create a new keyword Pin
damichab22-Feb-09 14:52
damichab22-Feb-09 14:52 
AnswerRe: How to create a new keyword Pin
PIEBALDconsult22-Feb-09 15:52
mvePIEBALDconsult22-Feb-09 15:52 
GeneralRe: How to create a new keyword Pin
damichab22-Feb-09 16:43
damichab22-Feb-09 16:43 
GeneralRe: How to create a new keyword Pin
Jon Rista22-Feb-09 18:10
Jon Rista22-Feb-09 18:10 

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.