Set value linq expression helper
SetValue
01 Syntax
Microsoft.VisualBasic.Linq.SetValue`1
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| GetSet | 1 | Public Delegate Function IInvokeSetValue(x As T, value As Object) As T |
| op_LessThanOrEqual | 1 | SetValue.GetSet()) |
| InvokeSetValue | 2 | Assigning the value to the specific named property to the target object. |
| InvokeSet | 1 | Assigning the value to the specific named property to the target object. |
| ToString | 1 | |
| op_GreaterThanOrEqual | 1 | |
| InvokeSet | 1 | |
| GetEnumerator | 1 |
03 Members
GetSet(
String)Public Delegate Function IInvokeSetValue(x As T, value As Object) As T
Parameters
| Name | Type | Description |
|---|---|---|
name | String | Using NameOf |
op_LessThanOrEqual(SetValue(Of `0),
String)Parameters
| Name | Type | Description |
|---|---|---|
setValue | SetValue(Of `0) | - |
name | String | Using NameOf |
InvokeSetValue(
`0, String, Object)Assigning the value to the specific named property to the target object. (将value参数之中的值赋值给目标对象x之中的指定的name属性名称的属性, 如果发生错误,则原有的对象x不会被修改)
Parameters
| Name | Type | Description |
|---|---|---|
x | `0 | - |
name | String | Using NameOf.(可以使用NameOf得到需要进行修改的属性名称) |
value | Object | - |
InvokeSet``1(
`0, String, ``0)Assigning the value to the specific named property to the target object. (将value参数之中的值赋值给目标对象obj之中的指定的name属性名称的属性, 如果发生错误,则原有的对象obj不会被修改)
Type Parameters
| Name | Description |
|---|---|
Tvalue |
Parameters
| Name | Type | Description |
|---|---|---|
obj | `0 | - |
Name | String | 可以使用NameOf得到需要进行修改的属性名称 |
value | ``0 | - |
ToString()
op_GreaterThanOrEqual(SetValue(Of T),
String)InvokeSetValue(
T, NamedValue(Of Object))InvokeSet(
T, String, Tvalue)GetEnumerator()