Luke Smith

Write today, wrong tomorrow

Moving obsolete methods to a partial class

I just had a sudden brain wave. I’ve been going through my code library at work tidying
stuff up and marking some methods as Obsolete,
but the thing about this is that it leaves obsolete methods in the classes cs file…yukky.
So my brain wave is to make use of partial
classes
and move all obsolete methods out of the main class cs file and into a
myclass.obsolete.cs file.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.