Remove an assembly from the global assembly cache (GAC)

You can manage your global assemblies with the gacutil.exe which comes with Microsoft SDK. You can find this tool for instance in folder "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\".

This is an example about removing one assembly:

"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\gacutil.exe" /u Assembly.To.Uninstall

Howto access a protected method

Here is a small code snippet about howto access a protected method of a class:

Code Snippet
  1. public class OriginalClass
  2. {        
  3.     protected int OrginalProtectedMethod()
  4.     {
  5.         return 0;
  6.     }
  7. }
  8. public class MyDescClass : OriginalClass
  9. {
  10.     public int MyMethod() {
  11.         return OrginalProtectedMethod();
  12.     }
  13. }
  14.  
  15. // access the "protected method"
  16. var md = new MyDescClass();
  17. var result = md.MyMethod();

Howto show the resize grip (window drag handle)

If you want to display the the drag handle in the lower right corner of the Window you have to set the ResizeMode Window property like that:

Code Snippet
  1. <Window
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. ResizeMode="CanResizeWithGrip">

This is the result:

resizegrip

Visual Studio code selection as HML

I was looking for a possibility to copy selected Visual Studio code as HTML to publish code easily.

I am using Windows Live Writer and WordPress. There is a plugin called "Paste As Visual Studio Code".

Here you can download this plugin.

Install this plugin, start Windows Live Writer, copy some code from Visual Studio IDE, switch to tab “Insert” and paste it into an Windows Live Writer article clicking the plugin button.

pasteasvisualstudiocode