Category Archives: C#

C# related posts.

Cross-AppDomain Singleton in C#

How create a cross-AppDomain singleton in C# without using interop calls to the runtime.

Also posted in Best Practices, Programming, Tricks | 4 Comments

WCF and Windows/Custom Auth

Allowing a WCF web client (hosted in IIS) to send either Windows Authentication or Custom Authentication.

Also posted in Programming, WCF | Leave a comment

Code Contracts

I recently started using CodeContracts and have a few tips.

Also posted in Best Practices, Short, XMPP Server 2010 | 2 Comments

Automatically Wrap BeginInvoke (dispatch)

Easily handle multi-threaded events in .Net WinForms.

Also posted in Programming, Tricks | Leave a comment

SSRS Timeout on SSL 443 – Resolved

If you are getting either a ‘The underlying connection was closed’ or ‘The operation has timed-out’ error when deploying reports manually (add reference to web service) to SSRS via SSL on port 443 this fix may work for you.

Also posted in Programming, SSRS | 2 Comments

XLinQ Serialization

XmlSerializer suprisingly supports List.

Also posted in Programming, Short | 1 Comment

Remove System Menu Icon in WPF

Howto remove the caption bar in WPF.

Also posted in Code 7 Contest, Programming, Top Hacks | 1 Comment

Wrapping on Specific Characters

How to inform GDI+ that a certain character can be automatically wrapped.

Also posted in Migrated, Programming, Top Hacks | Leave a comment

Unbox Enum as an Integral Value

How to unbox an enum without needing to know its base type.

Also posted in Migrated, Programming | Leave a comment

How to close a XML Element using XmlTextWriter

You can’t close an XML element using the XmlTextWriter class unless you write a conflicting state to the document (e.g. Comment). Here is how to get around that.

Also posted in Migrated, Programming, Top Hacks | Leave a comment

Switch to our mobile site