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: 19.01.00
Syntax
C#
public Object AddOrUpdateAspect(
	Type typeOfAspect,
	Func<Type, Object> addAspect,
	Func<Type, Object, Object> updateAspect
)

Parameters

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

Return Value

Object
The aspect.
Remarks
Thread safe.
See Also