Click or drag to resize

ProtocolSocketAddOrUpdateAspect Method

Adds or updates an aspect of the socket.

Namespace:  Demo3D.Net
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 15.0.2.11458
Syntax
C#
public Object AddOrUpdateAspect(
	Type typeOfAspect,
	Func<Type, Object> addAspect,
	Func<Type, Object, Object> updateAspect
)

Parameters

typeOfAspect
Type: SystemType
The type of the aspect to add.
addAspect
Type: SystemFuncType, Object
The function used to generate a new aspect.
updateAspect
Type: SystemFuncType, Object, Object
The function used to update the current aspect with a new value.

Return Value

Type: Object
The aspect.
Remarks
Thread safe.
See Also