VAF.Extensions.Community icon indicating copy to clipboard operation
VAF.Extensions.Community copied to clipboard

ObjectCopyOptions Helper methods for Properties

Open IdrissPiard opened this issue 4 years ago • 0 comments

Could we have helper methods on ObjectCopyOptions for the underlying Properties ? Chainable would be nice too.

These could be the above specified helpers:

  • public ObjectCopyOptions ReplaceOrAdd(int propertyId, MFDataType dataType, object value);
  • public ObjectCopyOptions Add(int propertyId, MFDataType dataType, object value);
  • public ObjectCopyOptions Remove(int propertyId);

An improved overload could infer DataType from propertyId:

  • public ObjectCopyOptions ReplaceOrAdd(int propertyId, object value);
  • public ObjectCopyOptions Add(int propertyId, object value);

IdrissPiard avatar May 12 '21 14:05 IdrissPiard