Why You Should Never Set LangVersion=Latest in a Serious Project
Why pinning LangVersion to Latest undermines build reproducibility, and how explicit language and SDK versions keep a team's builds predictable.
Browse by term
Why pinning LangVersion to Latest undermines build reproducibility, and how explicit language and SDK versions keep a team's builds predictable.
Weighing .resx files against Embedded Resource for shipping images in a .NET assembly, and rules of thumb for choosing between them.
A balanced look at #region in C# — where it genuinely helps navigate large files, and where it just hides code that needs refactoring.
The two common conventions for ordering C# using directives, how ReSharper, Rider, StyleCop, Visual Studio, and .editorconfig each support them, and the specific settings that control the behavior.
Compares several Windows Live Writer plugins for formatting and syntax highlighting source code in blog posts, including their editors, Live Writer rendering, and final blog output.
Shows where Entity Framework 5 Code First creates its automatic LocalDB database in Visual Studio 2012 and how to access it through SQL Server Object Explorer.
Explores using LINQ with ArcObjects by exposing ArcGIS features as IEnumerable<IFeature>, including deferred execution, feature cursors, recycling considerations, custom enumerators, unit testing, and performance trade-offs.
How to fix the C# error 'lambda expression is not assignable to parameter type string' when using Entity Framework and LINQ by adding the missing System.Linq using directive.
Fixes a Visual Studio project startup error where the endpoint is not reachable by removing the Prefer32bit setting from the project file.
Fixes a Simian duplicate-code analysis issue in Jenkins where violations are counted but details show 'No violation found' due to an incorrect source path prefix.
Why Activator.CreateInstance fails when directly using an ArcObjects AppRefClass type but succeeds when obtaining the COM type through its CLSID, avoiding an invalid runtime cast.
Shows how to restore Debug.WriteLine output in DbgView when running xUnit tests by adding a DefaultTraceListener.
Troubleshooting the .NET error 'Failure has occurred while loading a type' in a COM+ assembly, tracing it to stale registry permissions and resolving it by removing the problematic CLSID keys and running Visual Studio with administrative privileges.
How to use InternalsVisibleTo with strong-named .NET assemblies, including signing the test assembly and specifying the full public key instead of the public key token.
Why calling an abstract or virtual initialization method from a C# base-class constructor triggers the 'Virtual member call in constructor' warning, and when this Template Method-style approach can be safe.
How to make ReSharper understand .NET Code Contracts such as Contract.Requires by extending its external annotations and eliminating false nullability warnings.
How an AppDomain.AssemblyResolve handler lets a GAC-deployed assembly bind to a dependency that isn't itself in the GAC.
How to suppress automatic ArcGIS Add-In registration during Visual Studio builds under limited permissions by placing a Dont_EsriRegAddin.txt file beside the project file.
How to suppress FxCop and Code Analysis warnings such as CA1811 and CA1812 in ArcGIS Desktop 10 Add-In code generated by ArcGISAddInHostGenerator.
How Castle Windsor resolves multiple implementations of the same interface and how registration order, named components, and constructor dependencies can build a Chain of Responsibility
How Word and OneNote differ when pasting formatted text, and how to use Visual Studio's CopySourceAsHtml add-in with HTML instead of RTF to preserve source-code formatting in OneNote.
A look at alternatives to the discontinued Snippet Compiler for compiling C# snippets and preserving syntax highlighting.
Notes on ArcGIS Add-In limitations and packaging, including component namespaces, adding unreferenced assemblies as AddInContent, PDB handling, and extending the table context menu with buttons.
How to fix an ArcObjects COMException when accessing MapDocument.Thumbnail from a background thread by explicitly setting the new thread's apartment state to STA.
A summary of .NET event naming guidelines and conventions for event handlers, EventArgs classes, pre- and post-events, and overridable OnXxx methods.
Wie sich COM-Belange in ArcObjects mit partiellen C#-Klassen, VsCommands und ReSharper sauberer separieren lassen und warum dies eine bessere Strukturierung als #region ermöglicht.
How to automate NUnit tests with consistent naming, a Windows batch runner, test categories, XML result files, and Hudson CI test reporting.
How to integrate Simian duplicate-code detection into Hudson CI, configure C# file exclusions and thresholds, generate XML reports, and prevent code duplication findings from breaking the build..
A collection of StyleCop and FxCop SuppressMessage examples for common code analysis issues, including naming, IoC, testing, exceptions, documentation, strong names, and framework-specific cases.
Verschiedene englische und deutsche Formulierungen zur Aussprache und Beschreibung des Lambda-Operators in C# und von Lambda-Ausdrücken.
Warum ReSharpers Reorder Type Members bei C#-Strukturen für unmanaged Code gefährlich sein kann und wie StructLayout und FieldOffset ein stabiles Speicherlayout sicherstellen.
How a trailing backslash in a quoted Windows folder argument can break parsing
How to configure StyleCop SA1600 documentation warnings to ignore missing documentation
Performancevergleich von as, is und direkten Casts in C#
C#-Tipps für ArcObjects: unnötige doppelte Casts mit is und explizitem Cast vermeiden sowie Next()-Schleifen kompakter und verständlicher formulieren.
How to maintain Visual Studio 2005 and 2008 project compatibility
How to catch COMException errors from the ArcObjects library in C#, inspect their error codes, and identify specific ArcObjects error constants.
How an orphaned assembly in the GAC can cause the misleading MSB3217 'Cannot register assembly' build error and why removing stale dependencies solves it.
Use strongly typed image and cursor resources in .NET applications to catch missing or renamed resources earlier and avoid fragile runtime lookups.
How to localize C# applications with .NET resource files, satellite assemblies, ResGen.exe, AL.exe, and a post-build process for multiple languages.
Why you don't need a wildcard when configuring log4net parameters for all loggers within a namespace.
Wie sich mit ExeConfigurationFileMap eine eigene Konfigurationsdatei für eine .NET-DLL laden und auslesen lässt.
Shows how to map XML Any elements in BizTalk orchestrations using XmlDocument.ImportNode, serializable XML helper classes, namespace managers, and a Message Assignment shape.
Zeigt verschiedene Möglichkeiten zum Verarbeiten und Manipulieren von XML-Messages in BizTalk-Orchestrations mit XmlDocument, XPath, Namespace-Managern und eigenen .NET-Klassen.