473,398 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

CSharp Source Code

Hi:
I am trying to inherit a class from the C# class, and override a
method, but before I can start coding, I need to know what goes on in
the C# method, before I can make any corresponding changes to my
method,
is there any place from where I can get the C# code for that class.

specifically I am looking for ErrorProvider class and method is
SetIconAlignment.

Thanks, shilpi

May 11 '07 #1
5 1658
I am trying to inherit a class from the C# class, and override a
method, but before I can start coding, I need to know what goes on in
the C# method, before I can make any corresponding changes to my
method,
is there any place from where I can get the C# code for that class.

specifically I am looking for ErrorProvider class and method is
SetIconAlignment.
You have to rely on the documentation for that class. It's the only official
source. Unfortunately, the .NET docs are very weak IMO (due to lack of
sufficient info).
May 11 '07 #2
On May 11, 11:16 am, shilpichaud...@gmail.com wrote:
Hi:
I am trying to inherit a class from the C# class, and override a
method, but before I can start coding, I need to know what goes on in
the C# method, before I can make any corresponding changes to my
method,
is there any place from where I can get the C# code for that class.
Hmm, techincally you should not need to know how the class is
implemented. That would break encapsulation. If the superclass'
implemenation changes, it would then break your subclass, which is not
good.
specifically I am looking for ErrorProvider class and method is
SetIconAlignment.
if you really need to peek that that code, you can use Reflector from
Loeder. This program allows you to inspect assemblies, and
disassemble code.

May 11 '07 #3
sh************@gmail.com wrote:
I am trying to inherit a class from the C# class, and override a
method, but before I can start coding, I need to know what goes on in
the C# method, before I can make any corresponding changes to my
method,
is there any place from where I can get the C# code for that class.
As other has stated, then the approach is bad.

When MS changes something then your code may break.

If you want to go ahead, then find a decompiler like
Reflector.FileDisassembler.

Arne
May 12 '07 #4
Sometimes koders.com has definitions for framework methods. I don't know
whether they're actual, or just someone's idea of what goes on, but it's a
useful resource. ErrorProvider.cs can be downloaded here:

http://www.koders.com/csharp/fid9696...tIconAlignment

I echo the warning of others though--don't depend too heavily on knowing how
it works internally.

--
Brian Schwartz
FishNet Components
http://www.fishnetcomponents.com
Fish Grid .NET Light: Powerful Layouts for Small Datasets
<sh************@gmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.com...
Hi:
I am trying to inherit a class from the C# class, and override a
method, but before I can start coding, I need to know what goes on in
the C# method, before I can make any corresponding changes to my
method,
is there any place from where I can get the C# code for that class.

specifically I am looking for ErrorProvider class and method is
SetIconAlignment.

Thanks, shilpi

May 12 '07 #5
Brian Schwartz wrote:
Sometimes koders.com has definitions for framework methods. I don't know
whether they're actual, or just someone's idea of what goes on, but it's a
useful resource. ErrorProvider.cs can be downloaded here:

http://www.koders.com/csharp/fid9696...tIconAlignment
I thought it was Mono source and not MS source they had !?

Arne
May 12 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David L | last post by:
I was looking for my stashed away copy of Thinking in CSharp by Bruce Eckel which I have downloaded long time ago. Sadly it is gone due to my PC harddisk reorganisation. And the author website does...
2
by: acool | last post by:
I have been doing this with VB.Net for quite a while and NO problems. I tried doing the same thingwith csharp and my Visual DataAdapter bomb when I go back to the page. My code is as follows: ...
2
by: news.microsoft.com | last post by:
Hi: I work in Csharp's parser files by LEX/YACC.Now I have only CSharp-lex.l and CSharp.y file,but they not have CSharp'comment Parse. this is a part of CSharp-lex.l. ........................
5
by: TulasiKumar | last post by:
Hi all, I am new in Netwrok porgraming in cSharp.how can i detect Tcp/Ip packet in c#.Net.Any body knows please tell me, what are the interfaces or classes are supported regrading on TCP/IP...
10
by: Brian Parker | last post by:
I inherited a C++ DLL that I need to remotely call multiple times asynchronously. What I have developed is: CSharp web application that makes asynchronous calls to a CSharp Web Service. The...
5
by: Joel | last post by:
In the course of my project, I must include some custom logic and would like to integrate a small script language in my application for that purpose. In C++, I used the LUA script language and I...
6
by: Carla Simeoni | last post by:
As far as I understood intermediate CSharp IC code can be retrieved resp. re-engineered to a similar source code as the original. Are there any options to obfuscate the code ? Carla
4
by: sloan | last post by:
Anyone know if this site has closed its doors? csharp-source.net I've tried for 3 days now, at work and at home. No go. ............
4
by: Wu | last post by:
Hello, I have to embed a flash in a html email by csharp. Don't you know how to do it? I found some source in code project, but the activeX does not able to run at default security level. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.