ProtocolSocketAddOrUpdateAspect Method |
Adds or updates an aspect of the socket.
Namespace: Demo3D.NetAssembly: Demo3D.IO (in Demo3D.IO.dll) Version: 19.01.00
Syntaxpublic 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
ObjectThe aspect.
Remarks
Thread safe.
See Also