Super Lloyd, You have to remember FxCop's history, which started off as a exactly that; a 'convention enforcer' for the .NET Framework Guidelines. However, these days we have not only naming and spelling rules, but also security (CallGCKeepAliveWhenUsingNativeResources, ReviewSqlQueriesForSecurityVulnerabilities, etc), correctness (ProvideCorrectArgumentsToFormattingMethods, RethrowToPreserveStackDetails, etc) interop/portability (PInvokeDeclarationsShouldBePortable, PInvokeEntryPointsShouldExist, etc), design (ValidateArgumentsOfPublicMethods, ImplementIDisposableCorrectly, etc), performance (AvoidUnnecessaryStringCreation, AvoidUncalledPrivateCode, etc) and globalization (DoNotPassLiteralsAsLocalizedParameters, DoNotHardcodeLocaleSpecificStrings, etc). Within Visual Studio Team System we also have some reliability (DisposeObjectsBeforeLosingScope, DoNotLockOnObjectsWithWeakIdentity, etc) and maintainability (AvoidExcessiveComplexity, AvoidExcessiveInheritance, etc) rules. I think one mistake that new users make, is that they try to fix every issue. A lot of rules such as the collection naming one you encountered above, are only applicable if you are designing a reusable Framework, if not, turn it off. If you have any concerns about any rules, don't hesitate to head over to the FxCop Forum[^] and tell us what you think. David M. Kean VS Code Analysis Team My Blog: Managed from Down Under | Team Blog: FxCop Blog -- modified at 11:21 Sunday 11th June, 2006
David M Kean
Posts
-
FxCop experience? -
Console window in VS2005 standart edition!Are you sure? I'm running VS 2K5 Pro RTM and its not there. I assumed he was talking about the Quick Console window. David M. Kean My Blog: Managed from Down Under
-
Console window in VS2005 standart edition!It was actually removed from all RTM versions of Visual Studio. David M. Kean My Blog: Managed from Down Under
-
Now I am really disgusted!Did you report a bug on the Microsoft Product Feedback Center[^] as a regression? David M. Kean My Blog: Managed from Down Under
-
Visual Studio 2005 Beta Experience KitPerhaps you should should add a bug report to the Microsoft Product Feedback Center[^]? ;) David M. Kean My Blog: Managed from Down Under
-
FGAOTD [Funny Google Ads ...]Don't say it. But I know exactly who you mean. David M. Kean My Blog: Managed from Down Under
-
Microsoft : Support an oxymoron?Well not entirely true as Visual Studio .NET 2002 SP1 has been released. However I do agree that service packs need released quicker than they currently are. Also I would like to be able to download a hotfix without needing to contact PSS. David M. Kean My Blog: Managed from Down Under
-
Should everyone who writes code need to be a pro?> You don't need to be a Formula 1 racer to drive fast on the highways. But you do need to be licenced. David M. Kean My Blog: Managed from Down Under
-
Sealed classes. Why??Most of the time I think it is for good reasons. Take for example the ImageList class, because it's just a wrapper around the Win32 ImageList, so overriding its properties (ie Images) would be of no benefit as controls don't use them. See http://www.thinktecture.com/Resources/Articles/SealedIsGood.html[^] Other times its for security, where inheriting a class could allow the class to do things that its not allowed. However, there are times that I can see not reason, like ServiceContainer. There is absolutely no reason for this class to be sealed, and if fact in .NET 2.0 ServiceContainer has been unsealed... David M. Kean My Blog: Managed from Down Under
-
Marshalling Inline ArraysDoes anyone know the correct way of marshalling inline multi-dimensional arrays? I have the following structure that I want to reproduce in C#: typedef struct tagMyStruct { WORD Version; char szName[3][256]; } MyStruct, *MyStruct; Now if this was just an inline array: typedef struct tagMyStruct { WORD Version; char szName[256]; } MyStruct, *MyStruct; You do this: [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)] public struct MyStruct { public int Version; [MarshalAs(UnmanagedType.ByValTStr, SizeConst=257)] public string szName; } But it is not, so it is not that easy. I have tried, without success: [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)] public struct MyStruct { public int Version; [MarshalAs(UnmanagedType.ByValTStr, SizeConst=257)] public string name1; [MarshalAs(UnmanagedType.ByValTStr, SizeConst=257)] public string name2; [MarshalAs(UnmanagedType.ByValTStr, SizeConst=257)] public string name3; } Any ideas? David M. Kean My Blog: Managed from Down Under
-
Well I went and did it......and bought my own domain. I tried the free MSDN Connection[^] provided hosting[^], but after a 8 hours of running live, I ran out of bandwidth, 20 MB / day is not enough. $9.95 month for 300 MB space, 8 GB transfer / month plus a SQL Server database, can't go wrong... David M. Kean My Blog: Managed from down under[^]
-
How to build an automatic (no user interaction) web service?Maybe you should ask in a more appropriate forum, all we do here is read about new gadgets and laugh about other people's misfortunue... David M. Kean My Blog: Managed from Down Under
-
Win XP SP2 pulled from download..Beat me to it... David M. Kean My Blog: Managed from Down Under
-
Win XP SP2 pulled from download..Well considering that I just downloaded and installed it yesterday, I doubt that very much... David M. Kean My Blog: Managed from Down Under
-
Poll: What email client are you using?30 email accounts? Surely you can't have a need for that many accounts? My Blog: Managed from Down Under
-
They're Everywhere!Hitchhikers guide to the galaxy, i imagine...
-
C# Noob in trouble with enumerationsYou need to cast it to Things: Things aThing = (Things)numericThing;
-
Aussie wedding giftsTry wishlist.com.au, have bought stuff from then are few times without any issues...
-
Toolbar that doesn't steal focusHi, Does anyone know how to develop a toolbar that doesn't steal focus from the foreground window? For example: In Visual Studio .NET, undock a tool window and then click on one of the buttons on the main window toolbar. Notice the tool window continues to have focus. I want to do the same thing as Visual Studio. Currently I am using the Windows API ToolbarWindow32 class and the rebar control. Cheers David
-
File CompressionThanks very much for the advertisement...