Copies the specified meta key to a new meta key, with an optional format argument.
Usage
-
CopyMeta(string fromKey, string toKey, string format = null)The specified object in fromKey is copied to toKey. If a format is provided, the fromKey value is processed through string.Format before being copied (if the existing value is a DateTime, the format is passed as the argument to ToString).
fromKeyThe metadata key to copy from.
toKeyThe metadata key to copy to.
formatThe formatting to apply to the new value.
Fluent Methods
Chain these methods together after the constructor to modify behavior.
-
WithFormat(Func<string, string> execute)Specifies the format to use when copying the value.
executeA function to get the format to use.
-
WithFormat(string format)Specifies the format to use when copying the value.
formatThe format to use.
