Silverlight Feeds - All your Silverlight feeds in one place.

Sunday, October 03, 2010

5 (more) Easy Tips to Reduce and Refactoring your Code with Resharper (Tips 6-10)

by John Papa via JohnPapa.net on 10/3/2010 11:26:00 PM

This weekend I posted 5 simple ways to reduce your code using Resharper (tips 1-5). I decided to follow that up with another set of 5 quick and easy tips, so ere they go. Hopefully these tips will show you some things I do to turn on  (and off) some refactoring suggestions. Tip 6) Remove Parameter, and Update Usages I had a method in an interface where at one point I was using 3 parameters. Somewhere along the way I stopped using one of the parameters, and Resharper was kind enough to poi ...

[ read more ]

5 (more) Easy Tips to Reduce and Refactor your Code with Resharper (Tips 6-10)

by John Papa via JohnPapa.net on 10/3/2010 11:26:00 PM

This weekend I posted 5 simple ways to reduce your code using Resharper (tips 1-5). I decided to follow that up with another set of 5 quick and easy tips, so here they go. Hopefully these tips will show you some things I do to turn on  (and off) some refactoring suggestions. Tip 6) Remove Parameter, and Update Usages I had a method in an interface where at one point I was using 3 parameters. Somewhere along the way I stopped using one of the parameters, and Resharper was kind enough to po ...

[ read more ]

Playing multiple sounds in Windows Phone

by Corrado Cavalli via Corrado's BLogs on 10/3/2010 5:05:04 PM

Sometimes you might need to play multiple sounds at once (games are just one example) and as stated into documentation here: http://msdn.microsoft.com/en-us/library/ff426928(VS.96).aspx you can have only one MediaElement on a page, so: how do I play multiple sounds at the same time? If you can afford to use plain 16 bit mono wav files you can use XNA’s SoundEffect class in just a few steps: Add a project reference to Microsoft.Xna.Framework assembly. Add the wav files to your project using ...

[ read more ]

5 Easy Tips to Reduce and Refactor Your Code with Resharper

by John Papa via JohnPapa.net on 10/3/2010 12:04:00 AM

I’ve talked a lot about Resharper features such as the Find Usages, live templates, and the instant code analysis. But I have not talked about some of the features that are not as prominent but I find especially helpful. So here are a few very simple tips for how to clean your code up using Resharper. Tip 1) Removing redundant “this” qualifier Sometimes I add the this statement when I am writing code. It is a habit I got into a long while ago and have had a hard time breaking. I prefer to no ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. Silverlight Feeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on Silverlight Feeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us