Parse formatted monetary input with decimal.TryParse, an explicit culture and deliberate validation.
Read article
Parse formatted monetary input with decimal.TryParse, an explicit culture and deliberate validation.
Read articleImplement IHierarchicalEnumerable and IHierarchyData with correct child, parent and item identities.
Read article
Create the destination directory, append a complete line asynchronously and handle file ownership deliberately.
Read articleRead a display URL and construct an encoded query string without confusing URLs with filesystem paths.
Read article
Configure Negotiate authentication and require an authenticated identity without collecting directory passwords in application code.
Read articleUse SqlConnectionStringBuilder and external configuration instead of generated-code edits or literal database passwords.
Read article
Complete an ambient transaction explicitly and enable async flow when awaited operations participate.
Read articleTranslate between query and method syntax and materialize only when a stable snapshot is required.
Read article
Set drawing-window rulers, grid, scrollbars, page tabs and zoom using the Visio interop object model.
Read articleExpress the operations a generic method requires through interface, reference-type and constructor constraints.
Read article
Reproduce an optimistic concurrency conflict using two contexts and choose a deliberate conflict policy.
Read articleConnect a PropertyGrid to an object and use component attributes for categories, help text and visibility.
Read article
Use a SqlDataAdapter for a disconnected table and keep its synchronous I/O and update behavior explicit.
Read articleUse Contains for membership and understand the boundary between in-memory queries and database translation.
Read article
Use DateTimeOffset, explicit culture and unambiguous format tokens for display and interchange.
Read articleEscape composite-format braces and use raw interpolated strings when JSON-shaped text is clearer.
Read article
Use a group join plus DefaultIfEmpty for a left join, with a complete example and explicit null handling.
Read articleAwait CPU-bound background work from a UI event and resume on the UI thread before updating controls.
Read article
Use XmlReaderSettings to reject document types and bound XML parsing before loading an XmlDocument.
Read articleUse the correct StartsWith and EndsWith semantics and separate literal text matching from SQL LIKE patterns.
Read article
Showing 1–20 of 64 articles