/// <summary> /// Determines whether [is child of existing element] [the specified property]. /// </summary> /// <param name="collection">The collection.</param> /// <param name="property">The property.</param> /// <returns> /// <c>true</c> if this child of existing element] [the specified property]; otherwise, <c>false</c>. /// </returns> private static bool IsChildOfExistingElement(StructuredMetadataDictionary collection, string property) { return(collection.Any(kvp => kvp.Value.FirstOrDefault()?.IsMyProperty(property) ?? false)); }
/// <summary> /// Prevents a default instance of the <see cref="OpenGraph" /> class from being created. /// </summary> private OpenGraph() { this.internalOpenGraphData = new StructuredMetadataDictionary(); this.Namespaces = new Dictionary <string, OpenGraphNamespace>(); }