C# Класс Westwind.WebConnection.wwDotNetBridge

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddArrayItem() публичный Метод

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.
Результат bool

ConvertObjectToByteArray() публичный статический Метод

Converts an object to a byte array
public static ConvertObjectToByteArray ( object val ) : byte[]
val object
Результат byte[]

CreateArray() публичный Метод

Creates an instance of an array
public CreateArray ( string arrayTypeString ) : Westwind.WebConnection.ComArray
arrayTypeString string
Результат Westwind.WebConnection.ComArray

CreateArrayFromInstance() публичный Метод

Creates an array from a specific instance of a COM object
public CreateArrayFromInstance ( object instance ) : Westwind.WebConnection.ComArray
instance object
Результат Westwind.WebConnection.ComArray

CreateArrayOnInstance() публичный Метод

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
Результат bool

CreateArrayOnInstanceWithObject() публичный Метод

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
Результат bool

CreateAssemblyInstance() публичный Метод

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
Результат object

CreateAssemblyInstanceFromFile() публичный Метод

Creates an instance from a file reference with a parameterless constructor
public CreateAssemblyInstanceFromFile ( string AssemblyFileName, string TypeName ) : object
AssemblyFileName string
TypeName string
Результат object

CreateAssemblyInstanceFromFile_OneParm() публичный Метод

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
Результат object

CreateAssemblyInstanceFromFile_TwoParms() публичный Метод

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
Результат object

CreateAssemblyInstance_OneParm() публичный Метод

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
Результат object

CreateAssemblyInstance_TwoParms() публичный Метод

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
Результат object

CreateInstance() публичный Метод

Creates a type reference from a given type name if the assembly is already loaded.
public CreateInstance ( string TypeName ) : object
TypeName string
Результат object

CreateInstanceFromFile_Internal() защищенный Метод

Routine that loads a class from an assembly file name specified.
protected CreateInstanceFromFile_Internal ( string AssemblyFileName, string TypeName ) : object
AssemblyFileName string
TypeName string
Результат object

CreateInstanceOnType() публичный Метод

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
Результат bool

CreateInstanceOnType_FiveParms() публичный Метод

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
Результат bool

CreateInstanceOnType_FourParms() публичный Метод

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
Результат bool

CreateInstanceOnType_Internal() защищенный Метод

protected CreateInstanceOnType_Internal ( object instance, string property, string TypeName ) : bool
instance object
property string
TypeName string
Результат bool

CreateInstanceOnType_OneParm() публичный Метод

public CreateInstanceOnType_OneParm ( object instance, string property, string TypeName, object parm1 ) : bool
instance object
property string
TypeName string
parm1 object
Результат bool

CreateInstanceOnType_ThreeParms() публичный Метод

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
Результат bool

CreateInstanceOnType_TwoParms() публичный Метод

public CreateInstanceOnType_TwoParms ( object instance, string property, string TypeName, object parm1, object parm2 ) : bool
instance object
property string
TypeName string
parm1 object
parm2 object
Результат bool

CreateInstance_FiveParms() публичный Метод

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
Результат object

CreateInstance_FourParms() публичный Метод

public CreateInstance_FourParms ( string TypeName, object Parm1, object Parm2, object Parm3, object Parm4 ) : object
TypeName string
Parm1 object
Parm2 object
Parm3 object
Parm4 object
Результат object

CreateInstance_Internal() защищенный Метод

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
Результат object

CreateInstance_Internal() защищенный Метод

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
Результат object

CreateInstance_OneParm() публичный Метод

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
Результат object

CreateInstance_ThreeParms() публичный Метод

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
Результат object

CreateInstance_TwoParms() публичный Метод

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
Результат object

DataSetToXmlString() публичный Метод

Returns an XML string from a .NET DataSet
public DataSetToXmlString ( DataSet ds, bool includeSchema ) : string
ds System.Data.DataSet
includeSchema bool
Результат string

FixupAssemblyName() защищенный Метод

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
Результат string

FixupParameter() публичный статический Метод

public static FixupParameter ( object val ) : object
val object
Результат object

FixupReturnValue() публичный статический Метод

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
Результат object

FromJson() публичный Метод

Deserializes a JSON object
public FromJson ( string json, Type type ) : object
json string
type System.Type
Результат object

FromXml() публичный Метод

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
Результат object

GetArrayItem() публичный Метод

Returns an individual Array Item by its index
public GetArrayItem ( object baseObject, string arrayName, int index ) : object
baseObject object
arrayName string
index int
Результат object

GetEnumString() публичный Метод

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
Результат string

GetIndexedProperty() публичный Метод

Returns an indexed property Value
public GetIndexedProperty ( object baseList, int index ) : object
baseList object
index int
Результат object

GetProperty() публичный Метод

public GetProperty ( object Instance, string Property ) : object
Instance object
Property string
Результат object

GetPropertyEx() публичный Метод

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
Результат object

GetStaticProperty() публичный Метод

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
Результат object

GetType() публичный Метод

public GetType ( object value ) : Type
value object
Результат System.Type

GetTypeFromName() публичный Метод

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
Результат System.Type

GetVersionInfo() публичный Метод

public GetVersionInfo ( ) : string
Результат string

InvokeMethod() публичный Метод

Invokes a method with no parameters
public InvokeMethod ( object Instance, string Method ) : object
Instance object
Method string
Результат object

InvokeMethodAsync() публичный Метод

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
Результат void

InvokeMethodWithParameterArray() публичный Метод

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
Результат object

InvokeMethod_EightParms() публичный Метод

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
Результат object

InvokeMethod_ElevenParms() публичный Метод

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
Результат object

InvokeMethod_FiveParms() публичный Метод

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
Результат object

InvokeMethod_FourParms() публичный Метод

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
Результат object

InvokeMethod_InternalWithObjectArray() защищенный Метод

protected InvokeMethod_InternalWithObjectArray ( object Instance, string Method, object args ) : object
Instance object
Method string
args object
Результат object

InvokeMethod_NineParms() публичный Метод

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
Результат object

InvokeMethod_OneParm() публичный Метод

Invokes a method with one parameter
public InvokeMethod_OneParm ( object Instance, string Method, object Parm1 ) : object
Instance object
Method string
Parm1 object
Результат object

InvokeMethod_ParameterArray() публичный Метод

public InvokeMethod_ParameterArray ( object Instance, string Method, object ParameterArray ) : object
Instance object
Method string
ParameterArray object
Результат object

InvokeMethod_SevenParms() публичный Метод

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
Результат object

InvokeMethod_SixParms() публичный Метод

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
Результат object

InvokeMethod_TenParms() публичный Метод

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
Результат object

InvokeMethod_ThreeParms() публичный Метод

public InvokeMethod_ThreeParms ( object Instance, string Method, object Parm1, object Parm2, object Parm3 ) : object
Instance object
Method string
Parm1 object
Parm2 object
Parm3 object
Результат object

InvokeMethod_TwelveParms() публичный Метод

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
Результат object

InvokeMethod_TwoParms() публичный Метод

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
Результат object

InvokeStaticMethod() публичный Метод

public InvokeStaticMethod ( string TypeName, string Method ) : object
TypeName string
Method string
Результат object

InvokeStaticMethodAsync() публичный Метод

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
Результат void

InvokeStaticMethod_EightParms() публичный Метод

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
Результат object

InvokeStaticMethod_FiveParms() публичный Метод

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
Результат object

InvokeStaticMethod_FourParms() публичный Метод

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
Результат object

InvokeStaticMethod_NineParms() публичный Метод

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
Результат object

InvokeStaticMethod_OneParm() публичный Метод

public InvokeStaticMethod_OneParm ( string TypeName, string Method, object Parm1 ) : object
TypeName string
Method string
Parm1 object
Результат object

InvokeStaticMethod_SevenParms() публичный Метод

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
Результат object

InvokeStaticMethod_SixParms() публичный Метод

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
Результат object

InvokeStaticMethod_TenParms() публичный Метод

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
Результат object

InvokeStaticMethod_ThreeParms() публичный Метод

public InvokeStaticMethod_ThreeParms ( string TypeName, string Method, object Parm1, object Parm2, object Parm3 ) : object
TypeName string
Method string
Parm1 object
Parm2 object
Parm3 object
Результат object

InvokeStaticMethod_TwoParms() публичный Метод

public InvokeStaticMethod_TwoParms ( string TypeName, string Method, object Parm1, object Parm2 ) : object
TypeName string
Method string
Parm1 object
Parm2 object
Результат object

LoadAssembly() публичный Метод

Loads an assembly into the AppDomain by its fully qualified assembly name
public LoadAssembly ( string AssemblyName ) : bool
AssemblyName string
Результат bool

LoadAssemblyFrom() публичный Метод

Loads an assembly into the AppDomain by a fully qualified assembly path
public LoadAssemblyFrom ( string AssemblyFileName ) : bool
AssemblyFileName string
Результат bool

RemoveArrayItem() публичный Метод

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!
Результат bool

SetArrayItem() публичный Метод

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
Результат bool

SetError() защищенный Метод

protected SetError ( ) : void
Результат void

SetError() защищенный Метод

protected SetError ( Exception ex ) : void
ex System.Exception
Результат void

SetError() защищенный Метод

protected SetError ( Exception ex, bool checkInner ) : void
ex System.Exception
checkInner bool
Результат void

SetError() защищенный Метод

protected SetError ( string message ) : void
message string
Результат void

SetProperty() публичный Метод

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
Результат void

SetPropertyEx() публичный Метод

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
Результат void

SetStaticProperty() публичный Метод

public SetStaticProperty ( string typeName, string property, object value ) : bool
typeName string
property string
value object
Результат bool

ToJson() публичный Метод

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
Результат string

ToXml() публичный Метод

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
Результат string

XmlStringToDataSet() публичный Метод

Converts an Xml String created from a FoxPro Xml Adapter or CursorToXml into a DataSet if possible.
public XmlStringToDataSet ( string xml ) : DataSet
xml string
Результат System.Data.DataSet

wwDotNetBridge() публичный Метод

public wwDotNetBridge ( ) : Newtonsoft.Json
Результат Newtonsoft.Json