CopyMeta

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).

    • fromKey

      The metadata key to copy from.

    • toKey

      The metadata key to copy to.

    • format

      The 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.

    • execute

      A function to get the format to use.

  • WithFormat(string format)

    Specifies the format to use when copying the value.

    • format

      The format to use.

GitHub