Skip to content Skip to sidebar Skip to footer
Showing posts with the label .Net

CA1062: ValidateArgumentsOfPublicMethods On Co-constructor Calls

Answer : Like this? public MyClass(SomeOtherClass source) : this(source, source == null ? null… Read more CA1062: ValidateArgumentsOfPublicMethods On Co-constructor Calls

AWS DotNet SDK Error: Unable To Get IAM Security Credentials From EC2 Instance Metadata Service

Answer : I had the same issue, here is how I fixed it on my development environment I created… Read more AWS DotNet SDK Error: Unable To Get IAM Security Credentials From EC2 Instance Metadata Service

C# WPF - ScrollViewer + TextBlock Troubles

Answer : This works: <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/prese… Read more C# WPF - ScrollViewer + TextBlock Troubles

Alternative To ComponentOne 3D Surface Map Chart

Answer : Here are some commercial providers that have the type of chart you're looking for: … Read more Alternative To ComponentOne 3D Surface Map Chart

Can I Use .NET Reflector To Modify & Recompile The Code Quickly?

Answer : You can probably use the Reflexil add-in for Reflector to do that: Reflexil is an … Read more Can I Use .NET Reflector To Modify & Recompile The Code Quickly?

Click Event For WPF Image

Answer : Just add a MouseDown (or MouseLeftButtonDown as suggested) event to your image like so … Read more Click Event For WPF Image

Check If A String Is A Valid Date Using DateTime.TryParse

Answer : If you want your dates to conform a particular format or formats then use DateTime.TryP… Read more Check If A String Is A Valid Date Using DateTime.TryParse

Associate A Private Key With The X509Certificate2 Class In .net

Answer : You can save yourself the hassle of copy-pasting all that code and store the private ke… Read more Associate A Private Key With The X509Certificate2 Class In .net