Beispiel #1
0
 /// <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;
Beispiel #2
0
 /// <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;
Beispiel #3
0
 /// <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;