C# Class Westwind.WebConnection.wwDotNetBridge

Mostra file Open project: RickStrahl/wwDotnetBridge Class Usage Examples

Public Methods

Method Description
AddArrayItem ( object baseObject, string arrayObject, object item ) : bool

Used to add an item to an array by indirection to work around VFP's inability to easily add array elements.

ConvertObjectToByteArray ( object val ) : byte[]

Converts an object to a byte array

CreateArray ( string arrayTypeString ) : Westwind.WebConnection.ComArray

Creates an instance of an array

CreateArrayFromInstance ( object instance ) : Westwind.WebConnection.ComArray

Creates an array from a specific instance of a COM object

CreateArrayOnInstance ( object baseType, string arrayProperty, int size ) : bool

Creates an array instance of a given type and size. Note the elements of this array are null/default and need to be set explicitly

CreateArrayOnInstanceWithObject ( object baseType, string arrayProperty, object item ) : bool

Creates a new array instance on a type of exactly 1 array item which is assigned the item parameter passed in.

CreateAssemblyInstance ( string AssemblyFileName, string TypeName ) : object

Creates a new instance from a file file based assembly refence. Requires full filename including extension and path.

CreateAssemblyInstanceFromFile ( string AssemblyFileName, string TypeName ) : object

Creates an instance from a file reference with a parameterless constructor

CreateAssemblyInstanceFromFile_OneParm ( string AssemblyFileName, string TypeName, object Parm1 ) : object

Creates an instance from a file reference with a 1 parameter constructor

CreateAssemblyInstanceFromFile_TwoParms ( string AssemblyFileName, string TypeName, object Parm1, object Parm2 ) : object

Creates an instance from a file reference with a two parameter constructor

CreateAssemblyInstance_OneParm ( string AssemblyFileName, string TypeName, object Parm1 ) : object

Creates a new instance from a file file based assembly refence. Requires full filename including extension and path.

CreateAssemblyInstance_TwoParms ( string AssemblyFileName, string TypeName, object Parm1, object Parm2 ) : object

Creates a new instance from a file file based assembly refence. Requires full filename including extension and path.

CreateInstance ( string TypeName ) : object

Creates a type reference from a given type name if the assembly is already loaded.

CreateInstanceOnType ( object instance, string property, string TypeName ) : bool

Creates an instance of a .NET type and stores it on an existing property of another type. Use this method if you can't access a type through COM ([ComVisible(false)]

CreateInstanceOnType_FiveParms ( object instance, string property, string TypeName, object parm1, object parm2, object parm3, object parm4, object parm5 ) : bool
CreateInstanceOnType_FourParms ( object instance, string property, string TypeName, object parm1, object parm2, object parm3, object parm4 ) : bool
CreateInstanceOnType_OneParm ( object instance, string property, string TypeName, object parm1 ) : bool
CreateInstanceOnType_ThreeParms ( object instance, string property, string TypeName, object parm1, object parm2, object parm3 ) : bool
CreateInstanceOnType_TwoParms ( object instance, string property, string TypeName, object parm1, object parm2 ) : bool
CreateInstance_FiveParms ( string TypeName, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5 ) : object
CreateInstance_FourParms ( string TypeName, object Parm1, object Parm2, object Parm3, object Parm4 ) : object
CreateInstance_OneParm ( string TypeName, object Parm1 ) : object

Creates a type reference from a given type name if the assembly is already loaded.

CreateInstance_ThreeParms ( string TypeName, object Parm1, object Parm2, object Parm3 ) : object

Creates a type reference from a given type name if the assembly is already loaded.

CreateInstance_TwoParms ( string TypeName, object Parm1, object Parm2 ) : object

Creates a type reference from a given type name if the assembly is already loaded.

DataSetToXmlString ( DataSet ds, bool includeSchema ) : string

Returns an XML string from a .NET DataSet

FixupParameter ( object val ) : object
FixupReturnValue ( object val ) : object

Fixes up a return value to return to FoxPro based on its type. Fixes up some values to be type safe for FoxPro and others are returned as wrappers (ComArray, ComGuid)

FromJson ( string json, Type type ) : object

Deserializes a JSON object

FromXml ( string xml, Type type ) : object

Deserializes an object from an XML string that was generated in format the same as generated from ToXml()

GetArrayItem ( object baseObject, string arrayName, int index ) : object

Returns an individual Array Item by its index

GetEnumString ( string EnumTypeName, object Value ) : string

Returns the name of an enum field given an enum value passed. Pass in the name of the enum type

GetIndexedProperty ( object baseList, int index ) : object

Returns an indexed property Value

GetProperty ( object Instance, string Property ) : object
GetPropertyEx ( object Instance, string Property ) : object

Returns a property value by allowing . syntax to drill into nested objects. Use this method to step over objects that FoxPro can't directly access (like structs, generics etc.)

GetStaticProperty ( string TypeName, string Property ) : object

Retrieves a value from a static property by specifying a type full name and property

GetType ( object value ) : Type
GetTypeFromName ( string typeName ) : Type

Helper routine that looks up a type name and tries to retrieve the full type reference in the actively executing assemblies.

GetVersionInfo ( ) : string
InvokeMethod ( object Instance, string Method ) : object

Invokes a method with no parameters

InvokeMethodAsync ( object callBack, object instance, string method ) : void

Invokes a method on a new thread and fires OnCompleted and OnError events on a passed in callback object.

InvokeMethodWithParameterArray ( object instance, string method, object parms ) : object

Invokes a method with an explicit array of parameters Allows for any number of parameters to be passed.

InvokeMethod_EightParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7, object Parm8 ) : object
InvokeMethod_ElevenParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7, object Parm8, object Parm9, object Parm10, object Parm11 ) : object
InvokeMethod_FiveParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5 ) : object
InvokeMethod_FourParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3, object Parm4 ) : object
InvokeMethod_NineParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7, object Parm8, object Parm9 ) : object
InvokeMethod_OneParm ( object Instance, string Method, object Parm1 ) : object

Invokes a method with one parameter

InvokeMethod_ParameterArray ( object Instance, string Method, object ParameterArray ) : object
InvokeMethod_SevenParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7 ) : object
InvokeMethod_SixParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6 ) : object
InvokeMethod_TenParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7, object Parm8, object Parm9, object Parm10 ) : object
InvokeMethod_ThreeParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3 ) : object
InvokeMethod_TwelveParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7, object Parm8, object Parm9, object Parm10, object Parm11, object Parm12 ) : object
InvokeMethod_TwoParms ( object Instance, string Method, object Parm1, object Parm2 ) : object

Invokes a method with two parameters

InvokeStaticMethod ( string TypeName, string Method ) : object
InvokeStaticMethodAsync ( object callBack, string typeName, string method ) : void

Invokes a method on a new thread and fires OnCompleted and OnError events on a passed in callback object.

InvokeStaticMethod_EightParms ( string TypeName, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7, object Parm8 ) : object
InvokeStaticMethod_FiveParms ( string TypeName, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5 ) : object
InvokeStaticMethod_FourParms ( string TypeName, string Method, object Parm1, object Parm2, object Parm3, object Parm4 ) : object
InvokeStaticMethod_NineParms ( string TypeName, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7, object Parm8, object Parm9 ) : object
InvokeStaticMethod_OneParm ( string TypeName, string Method, object Parm1 ) : object
InvokeStaticMethod_SevenParms ( string TypeName, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7 ) : object
InvokeStaticMethod_SixParms ( string TypeName, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6 ) : object
InvokeStaticMethod_TenParms ( string TypeName, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7, object Parm8, object Parm9, object Parm10 ) : object
InvokeStaticMethod_ThreeParms ( string TypeName, string Method, object Parm1, object Parm2, object Parm3 ) : object
InvokeStaticMethod_TwoParms ( string TypeName, string Method, object Parm1, object Parm2 ) : object
LoadAssembly ( string AssemblyName ) : bool

Loads an assembly into the AppDomain by its fully qualified assembly name

LoadAssemblyFrom ( string AssemblyFileName ) : bool

Loads an assembly into the AppDomain by a fully qualified assembly path

RemoveArrayItem ( object baseObject, string arrayObject, int Index ) : bool

Removes an item from a .NET array with indirection to work around VFP's inability to manipulate .NET array elements.

SetArrayItem ( object baseObject, string arrayName, int index, object value ) : bool

Sets an array element to a given value. Assumes the array is big enough and the array item exists.

SetProperty ( object Instance, string Property, object Value ) : void

Sets a property of a .NET object with a value

SetPropertyEx ( object Instance, string Property, object Value ) : void

Sets a property of a .NET object with a value using extended syntax. This method supports '.' syntax so you can use "Property.ChildProperty" to walk the object hierarchy in the string property parameter. This method also supports accessing of Array/Collection indexers (Item[1])

SetStaticProperty ( string typeName, string property, object value ) : bool
ToJson ( object value, bool formatted ) : string

Returns a JSON string from a .NET object. Note: doesn't work with FoxPro COM objects - only Interop .NET objects

ToXml ( object value ) : string

Returns an XML object from a .NET object. Note doesn't work with FoxPro COM object - only Interop .NET objects

XmlStringToDataSet ( string xml ) : DataSet

Converts an Xml String created from a FoxPro Xml Adapter or CursorToXml into a DataSet if possible.

wwDotNetBridge ( ) : Newtonsoft.Json

Protected Methods

Method Description
CreateInstanceFromFile_Internal ( string AssemblyFileName, string TypeName ) : object

Routine that loads a class from an assembly file name specified.

CreateInstanceOnType_Internal ( object instance, string property, string TypeName ) : bool
CreateInstance_Internal ( string TypeName ) : object

Creates an instance of a class based on its type name. Assumes that the type's assembly is already loaded. Note this will be a little slower than the versions that work with assembly name specified because this code has to search for the type first rather than directly activating it.

CreateInstance_Internal ( string AssemblyName, string TypeName ) : object

Routine that loads an assembly by its 'application assembly name' - unsigned assemblies must be visible via the .NET path (current path or BIN dir) and GAC assemblies must be referenced by their full assembly name.

FixupAssemblyName ( string AssemblyName ) : string

Helper routine that automatically assigns default names to certain 'common' system assemblies so that we don't have to provide a full path NOTE: All names are for .NET 2.0 Runtime at the moment

InvokeMethod_InternalWithObjectArray ( object Instance, string Method, object args ) : object
SetError ( ) : void
SetError ( Exception ex ) : void
SetError ( Exception ex, bool checkInner ) : void
SetError ( string message ) : void

Private Methods

Method Description
CreateArrayInstanceInternal ( object baseType, string arrayProperty, int size ) : Array

Creates an instance of an array on a given base object instance by name. Array is created with 'empty' elements - ie. objects are null and value types are set to their default() values.

InvokeMethod_Internal ( object instance, string method ) : object
InvokeStaticMethod_Internal ( string TypeName, string Method ) : object

Invokes a static method

_InvokeMethodAsync ( object parmList ) : void

Internal handler method that actually makes the async call on a thread

Method Details

AddArrayItem() public method

Used to add an item to an array by indirection to work around VFP's inability to easily add array elements.
public AddArrayItem ( object baseObject, string arrayObject, object item ) : bool
baseObject object The object that has the Array property
arrayObject string The array property name as a string
item object The item to set it to. Should not be null.
return bool

ConvertObjectToByteArray() public static method

Converts an object to a byte array
public static ConvertObjectToByteArray ( object val ) : byte[]
val object
return byte[]

CreateArray() public method

Creates an instance of an array
public CreateArray ( string arrayTypeString ) : Westwind.WebConnection.ComArray
arrayTypeString string
return Westwind.WebConnection.ComArray

CreateArrayFromInstance() public method

Creates an array from a specific instance of a COM object
public CreateArrayFromInstance ( object instance ) : Westwind.WebConnection.ComArray
instance object
return Westwind.WebConnection.ComArray

CreateArrayOnInstance() public method

Creates an array instance of a given type and size. Note the elements of this array are null/default and need to be set explicitly
public CreateArrayOnInstance ( object baseType, string arrayProperty, int size ) : bool
baseType object Object instance on which to create the array
arrayProperty string String property/field name of the array to create
size int Size of the array to createArray
return bool

CreateArrayOnInstanceWithObject() public method

Creates a new array instance on a type of exactly 1 array item which is assigned the item parameter passed in.
public CreateArrayOnInstanceWithObject ( object baseType, string arrayProperty, object item ) : bool
baseType object
arrayProperty string
item object
return bool

CreateAssemblyInstance() public method

Creates a new instance from a file file based assembly refence. Requires full filename including extension and path.
public CreateAssemblyInstance ( string AssemblyFileName, string TypeName ) : object
AssemblyFileName string
TypeName string
return object

CreateAssemblyInstanceFromFile() public method

Creates an instance from a file reference with a parameterless constructor
public CreateAssemblyInstanceFromFile ( string AssemblyFileName, string TypeName ) : object
AssemblyFileName string
TypeName string
return object

CreateAssemblyInstanceFromFile_OneParm() public method

Creates an instance from a file reference with a 1 parameter constructor
public CreateAssemblyInstanceFromFile_OneParm ( string AssemblyFileName, string TypeName, object Parm1 ) : object
AssemblyFileName string
TypeName string
Parm1 object
return object

CreateAssemblyInstanceFromFile_TwoParms() public method

Creates an instance from a file reference with a two parameter constructor
public CreateAssemblyInstanceFromFile_TwoParms ( string AssemblyFileName, string TypeName, object Parm1, object Parm2 ) : object
AssemblyFileName string
TypeName string
Parm1 object
Parm2 object
return object

CreateAssemblyInstance_OneParm() public method

Creates a new instance from a file file based assembly refence. Requires full filename including extension and path.
public CreateAssemblyInstance_OneParm ( string AssemblyFileName, string TypeName, object Parm1 ) : object
AssemblyFileName string
TypeName string
Parm1 object
return object

CreateAssemblyInstance_TwoParms() public method

Creates a new instance from a file file based assembly refence. Requires full filename including extension and path.
public CreateAssemblyInstance_TwoParms ( string AssemblyFileName, string TypeName, object Parm1, object Parm2 ) : object
AssemblyFileName string
TypeName string
Parm1 object
Parm2 object
return object

CreateInstance() public method

Creates a type reference from a given type name if the assembly is already loaded.
public CreateInstance ( string TypeName ) : object
TypeName string
return object

CreateInstanceFromFile_Internal() protected method

Routine that loads a class from an assembly file name specified.
protected CreateInstanceFromFile_Internal ( string AssemblyFileName, string TypeName ) : object
AssemblyFileName string
TypeName string
return object

CreateInstanceOnType() public method

Creates an instance of a .NET type and stores it on an existing property of another type. Use this method if you can't access a type through COM ([ComVisible(false)]
public CreateInstanceOnType ( object instance, string property, string TypeName ) : bool
instance object
property string
TypeName string
return bool

CreateInstanceOnType_FiveParms() public method

public CreateInstanceOnType_FiveParms ( object instance, string property, string TypeName, object parm1, object parm2, object parm3, object parm4, object parm5 ) : bool
instance object
property string
TypeName string
parm1 object
parm2 object
parm3 object
parm4 object
parm5 object
return bool

CreateInstanceOnType_FourParms() public method

public CreateInstanceOnType_FourParms ( object instance, string property, string TypeName, object parm1, object parm2, object parm3, object parm4 ) : bool
instance object
property string
TypeName string
parm1 object
parm2 object
parm3 object
parm4 object
return bool

CreateInstanceOnType_Internal() protected method

protected CreateInstanceOnType_Internal ( object instance, string property, string TypeName ) : bool
instance object
property string
TypeName string
return bool

CreateInstanceOnType_OneParm() public method

public CreateInstanceOnType_OneParm ( object instance, string property, string TypeName, object parm1 ) : bool
instance object
property string
TypeName string
parm1 object
return bool

CreateInstanceOnType_ThreeParms() public method

public CreateInstanceOnType_ThreeParms ( object instance, string property, string TypeName, object parm1, object parm2, object parm3 ) : bool
instance object
property string
TypeName string
parm1 object
parm2 object
parm3 object
return bool

CreateInstanceOnType_TwoParms() public method

public CreateInstanceOnType_TwoParms ( object instance, string property, string TypeName, object parm1, object parm2 ) : bool
instance object
property string
TypeName string
parm1 object
parm2 object
return bool

CreateInstance_FiveParms() public method

public CreateInstance_FiveParms ( string TypeName, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5 ) : object
TypeName string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
Parm5 object
return object

CreateInstance_FourParms() public method

public CreateInstance_FourParms ( string TypeName, object Parm1, object Parm2, object Parm3, object Parm4 ) : object
TypeName string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
return object

CreateInstance_Internal() protected method

Creates an instance of a class based on its type name. Assumes that the type's assembly is already loaded. Note this will be a little slower than the versions that work with assembly name specified because this code has to search for the type first rather than directly activating it.
protected CreateInstance_Internal ( string TypeName ) : object
TypeName string
return object

CreateInstance_Internal() protected method

Routine that loads an assembly by its 'application assembly name' - unsigned assemblies must be visible via the .NET path (current path or BIN dir) and GAC assemblies must be referenced by their full assembly name.
protected CreateInstance_Internal ( string AssemblyName, string TypeName ) : object
AssemblyName string
TypeName string
return object

CreateInstance_OneParm() public method

Creates a type reference from a given type name if the assembly is already loaded.
public CreateInstance_OneParm ( string TypeName, object Parm1 ) : object
TypeName string
Parm1 object
return object

CreateInstance_ThreeParms() public method

Creates a type reference from a given type name if the assembly is already loaded.
public CreateInstance_ThreeParms ( string TypeName, object Parm1, object Parm2, object Parm3 ) : object
TypeName string
Parm1 object
Parm2 object
Parm3 object
return object

CreateInstance_TwoParms() public method

Creates a type reference from a given type name if the assembly is already loaded.
public CreateInstance_TwoParms ( string TypeName, object Parm1, object Parm2 ) : object
TypeName string
Parm1 object
Parm2 object
return object

DataSetToXmlString() public method

Returns an XML string from a .NET DataSet
public DataSetToXmlString ( DataSet ds, bool includeSchema ) : string
ds System.Data.DataSet
includeSchema bool
return string

FixupAssemblyName() protected method

Helper routine that automatically assigns default names to certain 'common' system assemblies so that we don't have to provide a full path NOTE: All names are for .NET 2.0 Runtime at the moment
protected FixupAssemblyName ( string AssemblyName ) : string
AssemblyName string
return string

FixupParameter() public static method

public static FixupParameter ( object val ) : object
val object
return object

FixupReturnValue() public static method

Fixes up a return value to return to FoxPro based on its type. Fixes up some values to be type safe for FoxPro and others are returned as wrappers (ComArray, ComGuid)
public static FixupReturnValue ( object val ) : object
val object
return object

FromJson() public method

Deserializes a JSON object
public FromJson ( string json, Type type ) : object
json string
type System.Type
return object

FromXml() public method

Deserializes an object from an XML string that was generated in format the same as generated from ToXml()
public FromXml ( string xml, Type type ) : object
xml string
type System.Type
return object

GetArrayItem() public method

Returns an individual Array Item by its index
public GetArrayItem ( object baseObject, string arrayName, int index ) : object
baseObject object
arrayName string
index int
return object

GetEnumString() public method

Returns the name of an enum field given an enum value passed. Pass in the name of the enum type
public GetEnumString ( string EnumTypeName, object Value ) : string
EnumTypeName string
Value object
return string

GetIndexedProperty() public method

Returns an indexed property Value
public GetIndexedProperty ( object baseList, int index ) : object
baseList object
index int
return object

GetProperty() public method

public GetProperty ( object Instance, string Property ) : object
Instance object
Property string
return object

GetPropertyEx() public method

Returns a property value by allowing . syntax to drill into nested objects. Use this method to step over objects that FoxPro can't directly access (like structs, generics etc.)
public GetPropertyEx ( object Instance, string Property ) : object
Instance object
Property string
return object

GetStaticProperty() public method

Retrieves a value from a static property by specifying a type full name and property
public GetStaticProperty ( string TypeName, string Property ) : object
TypeName string Full type name (namespace.class)
Property string Property to get value from
return object

GetType() public method

public GetType ( object value ) : Type
value object
return System.Type

GetTypeFromName() public method

Helper routine that looks up a type name and tries to retrieve the full type reference in the actively executing assemblies.
public GetTypeFromName ( string typeName ) : Type
typeName string
return System.Type

GetVersionInfo() public method

public GetVersionInfo ( ) : string
return string

InvokeMethod() public method

Invokes a method with no parameters
public InvokeMethod ( object Instance, string Method ) : object
Instance object
Method string
return object

InvokeMethodAsync() public method

Invokes a method on a new thread and fires OnCompleted and OnError events on a passed in callback object.
public InvokeMethodAsync ( object callBack, object instance, string method ) : void
callBack object /// A callback object that has to have two methods: /// OnCompleted(lvResult, lcMethod) /// OnError(lcErrorMsg,loException, lcMethod) ///
instance object
method string
return void

InvokeMethodWithParameterArray() public method

Invokes a method with an explicit array of parameters Allows for any number of parameters to be passed.
public InvokeMethodWithParameterArray ( object instance, string method, object parms ) : object
instance object
method string
parms object
return object

InvokeMethod_EightParms() public method

public InvokeMethod_EightParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7, object Parm8 ) : object
Instance object
Method string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
Parm5 object
Parm6 object
Parm7 object
Parm8 object
return object

InvokeMethod_ElevenParms() public method

public InvokeMethod_ElevenParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7, object Parm8, object Parm9, object Parm10, object Parm11 ) : object
Instance object
Method string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
Parm5 object
Parm6 object
Parm7 object
Parm8 object
Parm9 object
Parm10 object
Parm11 object
return object

InvokeMethod_FiveParms() public method

public InvokeMethod_FiveParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5 ) : object
Instance object
Method string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
Parm5 object
return object

InvokeMethod_FourParms() public method

public InvokeMethod_FourParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3, object Parm4 ) : object
Instance object
Method string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
return object

InvokeMethod_InternalWithObjectArray() protected method

protected InvokeMethod_InternalWithObjectArray ( object Instance, string Method, object args ) : object
Instance object
Method string
args object
return object

InvokeMethod_NineParms() public method

public InvokeMethod_NineParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7, object Parm8, object Parm9 ) : object
Instance object
Method string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
Parm5 object
Parm6 object
Parm7 object
Parm8 object
Parm9 object
return object

InvokeMethod_OneParm() public method

Invokes a method with one parameter
public InvokeMethod_OneParm ( object Instance, string Method, object Parm1 ) : object
Instance object
Method string
Parm1 object
return object

InvokeMethod_ParameterArray() public method

public InvokeMethod_ParameterArray ( object Instance, string Method, object ParameterArray ) : object
Instance object
Method string
ParameterArray object
return object

InvokeMethod_SevenParms() public method

public InvokeMethod_SevenParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7 ) : object
Instance object
Method string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
Parm5 object
Parm6 object
Parm7 object
return object

InvokeMethod_SixParms() public method

public InvokeMethod_SixParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6 ) : object
Instance object
Method string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
Parm5 object
Parm6 object
return object

InvokeMethod_TenParms() public method

public InvokeMethod_TenParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7, object Parm8, object Parm9, object Parm10 ) : object
Instance object
Method string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
Parm5 object
Parm6 object
Parm7 object
Parm8 object
Parm9 object
Parm10 object
return object

InvokeMethod_ThreeParms() public method

public InvokeMethod_ThreeParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3 ) : object
Instance object
Method string
Parm1 object
Parm2 object
Parm3 object
return object

InvokeMethod_TwelveParms() public method

public InvokeMethod_TwelveParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7, object Parm8, object Parm9, object Parm10, object Parm11, object Parm12 ) : object
Instance object
Method string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
Parm5 object
Parm6 object
Parm7 object
Parm8 object
Parm9 object
Parm10 object
Parm11 object
Parm12 object
return object

InvokeMethod_TwoParms() public method

Invokes a method with two parameters
public InvokeMethod_TwoParms ( object Instance, string Method, object Parm1, object Parm2 ) : object
Instance object
Method string
Parm1 object
Parm2 object
return object

InvokeStaticMethod() public method

public InvokeStaticMethod ( string TypeName, string Method ) : object
TypeName string
Method string
return object

InvokeStaticMethodAsync() public method

Invokes a method on a new thread and fires OnCompleted and OnError events on a passed in callback object.
public InvokeStaticMethodAsync ( object callBack, string typeName, string method ) : void
callBack object /// A callback object that has to have two methods: /// OnCompleted(lvResult, lcMethod) /// OnError(lcErrorMsg,loException, lcMethod) ///
typeName string
method string
return void

InvokeStaticMethod_EightParms() public method

public InvokeStaticMethod_EightParms ( string TypeName, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7, object Parm8 ) : object
TypeName string
Method string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
Parm5 object
Parm6 object
Parm7 object
Parm8 object
return object

InvokeStaticMethod_FiveParms() public method

public InvokeStaticMethod_FiveParms ( string TypeName, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5 ) : object
TypeName string
Method string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
Parm5 object
return object

InvokeStaticMethod_FourParms() public method

public InvokeStaticMethod_FourParms ( string TypeName, string Method, object Parm1, object Parm2, object Parm3, object Parm4 ) : object
TypeName string
Method string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
return object

InvokeStaticMethod_NineParms() public method

public InvokeStaticMethod_NineParms ( string TypeName, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7, object Parm8, object Parm9 ) : object
TypeName string
Method string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
Parm5 object
Parm6 object
Parm7 object
Parm8 object
Parm9 object
return object

InvokeStaticMethod_OneParm() public method

public InvokeStaticMethod_OneParm ( string TypeName, string Method, object Parm1 ) : object
TypeName string
Method string
Parm1 object
return object

InvokeStaticMethod_SevenParms() public method

public InvokeStaticMethod_SevenParms ( string TypeName, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7 ) : object
TypeName string
Method string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
Parm5 object
Parm6 object
Parm7 object
return object

InvokeStaticMethod_SixParms() public method

public InvokeStaticMethod_SixParms ( string TypeName, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6 ) : object
TypeName string
Method string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
Parm5 object
Parm6 object
return object

InvokeStaticMethod_TenParms() public method

public InvokeStaticMethod_TenParms ( string TypeName, string Method, object Parm1, object Parm2, object Parm3, object Parm4, object Parm5, object Parm6, object Parm7, object Parm8, object Parm9, object Parm10 ) : object
TypeName string
Method string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
Parm5 object
Parm6 object
Parm7 object
Parm8 object
Parm9 object
Parm10 object
return object

InvokeStaticMethod_ThreeParms() public method

public InvokeStaticMethod_ThreeParms ( string TypeName, string Method, object Parm1, object Parm2, object Parm3 ) : object
TypeName string
Method string
Parm1 object
Parm2 object
Parm3 object
return object

InvokeStaticMethod_TwoParms() public method

public InvokeStaticMethod_TwoParms ( string TypeName, string Method, object Parm1, object Parm2 ) : object
TypeName string
Method string
Parm1 object
Parm2 object
return object

LoadAssembly() public method

Loads an assembly into the AppDomain by its fully qualified assembly name
public LoadAssembly ( string AssemblyName ) : bool
AssemblyName string
return bool

LoadAssemblyFrom() public method

Loads an assembly into the AppDomain by a fully qualified assembly path
public LoadAssemblyFrom ( string AssemblyFileName ) : bool
AssemblyFileName string
return bool

RemoveArrayItem() public method

Removes an item from a .NET array with indirection to work around VFP's inability to manipulate .NET array elements.
public RemoveArrayItem ( object baseObject, string arrayObject, int Index ) : bool
baseObject object The arrays parent object
arrayObject string The array's name as a string
Index int The index to of the item to delete. NOTE: 1 based!
return bool

SetArrayItem() public method

Sets an array element to a given value. Assumes the array is big enough and the array item exists.
public SetArrayItem ( object baseObject, string arrayName, int index, object value ) : bool
baseObject object base object reference
arrayName string Name of the array as a string
index int The index of the item to set
value object The value to set the array item to
return bool

SetError() protected method

protected SetError ( ) : void
return void

SetError() protected method

protected SetError ( Exception ex ) : void
ex System.Exception
return void

SetError() protected method

protected SetError ( Exception ex, bool checkInner ) : void
ex System.Exception
checkInner bool
return void

SetError() protected method

protected SetError ( string message ) : void
message string
return void

SetProperty() public method

Sets a property of a .NET object with a value
public SetProperty ( object Instance, string Property, object Value ) : void
Instance object
Property string
Value object
return void

SetPropertyEx() public method

Sets a property of a .NET object with a value using extended syntax. This method supports '.' syntax so you can use "Property.ChildProperty" to walk the object hierarchy in the string property parameter. This method also supports accessing of Array/Collection indexers (Item[1])
public SetPropertyEx ( object Instance, string Property, object Value ) : void
Instance object
Property string
Value object
return void

SetStaticProperty() public method

public SetStaticProperty ( string typeName, string property, object value ) : bool
typeName string
property string
value object
return bool

ToJson() public method

Returns a JSON string from a .NET object. Note: doesn't work with FoxPro COM objects - only Interop .NET objects
public ToJson ( object value, bool formatted ) : string
value object
formatted bool
return string

ToXml() public method

Returns an XML object from a .NET object. Note doesn't work with FoxPro COM object - only Interop .NET objects
public ToXml ( object value ) : string
value object
return string

XmlStringToDataSet() public method

Converts an Xml String created from a FoxPro Xml Adapter or CursorToXml into a DataSet if possible.
public XmlStringToDataSet ( string xml ) : DataSet
xml string
return System.Data.DataSet

wwDotNetBridge() public method

public wwDotNetBridge ( ) : Newtonsoft.Json
return Newtonsoft.Json