/// <summary> /// Namespaces the specified metadata. /// </summary> /// <param name="metadata">The metadata.</param> /// <returns>The namespace of the item when present; otherwise null.</returns> private static OpenGraphNamespace Namespace(this MetadataBase metadata) => (metadata ?? new NullMetadata()).Namespace;
/// <summary> /// Names the specified metadata. /// </summary> /// <param name="metadata">The metadata.</param> /// <returns>The name of the item when present; otherwise an empty string.</returns> private static string Name(this MetadataBase metadata) => (metadata ?? new NullMetadata()).Name ?? string.Empty;
/// <summary> /// Values the specified metadata. /// </summary> /// <param name="metadata">The metadata.</param> /// <returns>The value of the item, or an empty string when null.</returns> private static string Value(this MetadataBase metadata) => (metadata ?? new NullMetadata()).Value ?? string.Empty;