WTelegramClientHelperSetFieldValueT Method

Sets the value of a field from the provided source object using reflection.

Definition

Namespace: DevCase.ThirdParty.WTelegramClient
Assembly: DevCase.net48.ThirdParty.WTelegramClient (in DevCase.net48.ThirdParty.WTelegramClient.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void SetFieldValue<T>(
	Object sourceObject,
	string fieldName,
	T value,
	BindingFlags bindingFlags = BindingFlags.Instance|BindingFlags.Public
)

Parameters

sourceObject  Object
The source object from which the property value is to be set.
fieldName  String
The name of the field whose value is being set.
value  T
The new value for the retrieved field.
bindingFlags  BindingFlags  (Optional)
Optional. A combination of zero or more bit flags that specify how the search for fields is conducted.

Default valus is: Instance + Public.

Type Parameters

T
The type of the field value to be set.

Remarks

This method is designed to facilitate field retrieval based on a specified field name from an object, accommodating the non-VB.NET compliant member naming convention used in the WTelegramClient API, originally written in C#.

See Also