The download that installs the Visual Studio Tools for the Office system 3.0 Runtime, which is required to run VSTO solutions for the 2007 Microsoft Office system built using Microsoft Visual Studio 2008 has been released. http://www.microsoft.com/downloads/details.aspx?FamilyID=54EB3A5A-0E52-40F9-A2D1-EECD7A092DCB&displaylang=en
Month: July 2008
Retrieving Command Line Parameters
Getting command line parameters or seeing if they are present is not as easy as you would think. I whipped up some code to make this flexible and easy. Private Const ParameterPrefix As Char = "/"c Private Function GetCommandLineArgument(ByVal parameter As String) As String Dim paramValue = String.Empty For Each tempValue As String In System.Environment.GetCommandLineArgs If … Continue reading Retrieving Command Line Parameters
Serialize Your Objects to and from JSON
Here is some easy, generic code to serialize your objects to and from JSON:Public Shared Function JsonEncode(ByVal input As Object) As String Dim serilizer = New DataContractJsonSerializer(input.GetType) Using ms = New MemoryStream() serilizer.WriteObject(ms, input) Return Encoding.Default.GetString(ms.ToArray()) End UsingEnd FunctionPublic Shared Function JsonDecode(Of T)(ByVal input As String) As T Using ms = New MemoryStream(Encoding.Unicode.GetBytes(input)) Dim serilizer … Continue reading Serialize Your Objects to and from JSON

You must be logged in to post a comment.