Description of a Blogger Template
Added the following CSS style Sheet:
/*
Custom CSS class to display code snippets.
http://bguide.blogspot.com/
2008 Feb 03
*/
.mycode
{
border:1px dashed #aaaaaa;
background:#eeeeee;
white-space:pre;
font-family:monospace;
font-size:9pt;
line-height: 10pt;
height:auto;
width:auto;
padding:5px;
margin-left:10px;
overflow:auto;
}
To implement:
<div class="mycode">
/* Paste the code snippet here */
</div>
/* Paste the code snippet here */
</div>
My code....
public static void UnregisterControl(Type t)
{
try
{
GuardNullType(t, "t");
GuardTypeIsControl(t);
//CLSID
string key = @"CLSID\" + t.GUID.ToString("B");
Registry.ClassesRoot.DeleteSubKeyTree(key);
}
catch (Exception ex)
{
LogAndRethrowException("ComUnregisterFunction failed.", t, ex);
}
}
{
try
{
GuardNullType(t, "t");
GuardTypeIsControl(t);
//CLSID
string key = @"CLSID\" + t.GUID.ToString("B");
Registry.ClassesRoot.DeleteSubKeyTree(key);
}
catch (Exception ex)
{
LogAndRethrowException("ComUnregisterFunction failed.", t, ex);
}
}
No comments:
Post a Comment