We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Too many Private methods

Thread ID:





79430 Feb 9,2009 07:39 PM UTC Feb 10,2009 12:06 PM UTC WinForms 1
Tags: Diagram
Eric Robishaw
Asked On February 9, 2009 07:39 PM UTC

Start of Rant:

Why on earth do you make so many of your methods and fields private as opposed to protected?

The ones you do mark as protected are often unable to be overridden because too many calls they make are private as well. Driving me Crazy.

One example of many:
I'd like to override the ResizeTool's behavior so that when the Control key is held down, it preserves the Aspect ratio of nodes regardless of the EditStyle.AspectRatio setting. This would require ONE line of code if I could override your "GetNodeAspectRatio" method (it's private). Instead I have to override the entire HandleMouseMove and write all the hundreds of lines of code and methods below it.


IMHO, nearly all, if not, every single method and field of a commercial library should be protected, not private. Either that or mark everything private and don't allow any overrides.

Doing so would take your code from good to great.

End of Rant.

Ajeet M [Syncfusion]
Replied On February 10, 2009 12:06 PM UTC

Hi Eric,

Thanks for this update. We have taken up the feature request on the same and started to work on this.

Let me know if you shall need any further clarifications in this regard.

Warm Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon