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

C#

 
GeneralRe: C# reference parameter Pin
Dave Kreskowiak19-Sep-05 9:28
mveDave Kreskowiak19-Sep-05 9:28 
QuestionANDing, XOR 2 images Pin
DeepToot19-Sep-05 7:32
DeepToot19-Sep-05 7:32 
AnswerRe: ANDing, XOR 2 images Pin
Christian Graus19-Sep-05 11:40
protectorChristian Graus19-Sep-05 11:40 
QuestionAbout filealign compiler option Pin
Dario Solera19-Sep-05 7:12
Dario Solera19-Sep-05 7:12 
AnswerRe: About filealign compiler option Pin
leppie19-Sep-05 7:19
leppie19-Sep-05 7:19 
AnswerRe: About filealign compiler option Pin
Dave Kreskowiak19-Sep-05 8:05
mveDave Kreskowiak19-Sep-05 8:05 
GeneralRe: About filealign compiler option Pin
Dario Solera19-Sep-05 21:51
Dario Solera19-Sep-05 21:51 
Questioncalling a function in reflection Pin
Yoyosch19-Sep-05 6:21
Yoyosch19-Sep-05 6:21 
Class B includes a method "public void Save()".
Class A includes one field which type is B.

In some other class I am using reflection to gather information about class A and B:

<code>

{
	Type ClassType = typeof(refl.A);
        FieldInfo[] fields = ClassType.GetFields();

			foreach(FieldInfo f in fields)
			{
				Type t = f.FieldType;
				MemberInfo[] members = t.GetMembers();

				foreach (MemberInfo m in members)
				{
					if (m.Name == "Save")
					{
					   <big>
?????
</big>
					}
				}
			}
		}
</code>


When I find a function Save, i would like to call it. This isn`t a static method so I need to call it over some object. How to make it inside reflection?
AnswerRe: calling a function in reflection Pin
leppie19-Sep-05 7:13
leppie19-Sep-05 7:13 
AnswerRe: calling a function in reflection Pin
Andy Moore19-Sep-05 7:28
Andy Moore19-Sep-05 7:28 
QuestionRe: calling a function in reflection Pin
Yoyosch20-Sep-05 6:41
Yoyosch20-Sep-05 6:41 
QuestionDataGrid values Pin
zaboboa19-Sep-05 6:05
zaboboa19-Sep-05 6:05 
QuestionTextbox visibility and data binding Pin
Wjousts19-Sep-05 6:01
Wjousts19-Sep-05 6:01 
QuestionSorting Arraylists Twice Pin
jgallen2319-Sep-05 5:30
jgallen2319-Sep-05 5:30 
AnswerRe: Sorting Arraylists Twice Pin
Stefan Troschuetz19-Sep-05 7:50
Stefan Troschuetz19-Sep-05 7:50 
Questioncombo boxes not updating Pin
Tom Wright19-Sep-05 5:22
Tom Wright19-Sep-05 5:22 
AnswerRe: combo boxes not updating Pin
KaptinKrunch19-Sep-05 7:21
KaptinKrunch19-Sep-05 7:21 
QuestionOptions Design Pin
OmegaSupreme19-Sep-05 4:58
OmegaSupreme19-Sep-05 4:58 
QuestionRegular Expression for images Pin
brunoconde19-Sep-05 3:57
brunoconde19-Sep-05 3:57 
AnswerRe: Regular Expression for images Pin
User 665819-Sep-05 4:25
User 665819-Sep-05 4:25 
QuestionCyclic Visual Pin
PHDENG8119-Sep-05 3:28
PHDENG8119-Sep-05 3:28 
Questionsave file dialog Pin
Mridang Agarwalla19-Sep-05 2:48
Mridang Agarwalla19-Sep-05 2:48 
AnswerRe: save file dialog Pin
enjoycrack19-Sep-05 2:52
enjoycrack19-Sep-05 2:52 
Questionlatebinding Word Pin
KKuehnberger19-Sep-05 2:47
KKuehnberger19-Sep-05 2:47 
AnswerRe: latebinding Word Pin
John Fisher19-Sep-05 6:07
John Fisher19-Sep-05 6:07 

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.