Popular Posts

Saturday, July 14, 2012

Copy As HTML extension

visual studio addin to copy code as HTML... eg for blogs etc Install the addin, select code and right click and then Export As HTML ... That is it ... here is the output:
Code Snippet
  1.  
  2.     Private Sub SetPrivateProperty(Of t)(
  3.                                              ByVal targertObject As t,
  4.                                              ByVal targetPropertyName As String,
  5.                                              ByVal targetPropertyValue As Object
  6.                                          )
  7.         Dim type As Type = targertObject.GetType
  8.         type.InvokeMember(targetPropertyName,
  9.                           BindingFlags.NonPublic Or
  10.                           BindingFlags.SetProperty Or
  11.                           BindingFlags.Instance, Nothing,
  12.                           targertObject, New Object() {targetPropertyValue})
  13.     End Sub



Copy As HTML extension:

'via Blog this'

No comments:

Post a Comment