Halcyon.HAL.HALResponse.AddEmbeddedCollection C# (CSharp) Méthode

AddEmbeddedCollection() public méthode

public AddEmbeddedCollection ( string name, IEnumerable objects ) : HALResponse
name string
objects IEnumerable
Résultat HALResponse
        public HALResponse AddEmbeddedCollection(string name, IEnumerable<HALResponse> objects)
        {
            embedded.Add(name, objects);
            return this;
        }

Usage Example

Exemple #1
0
        public static HALResponse AddEmbeddedCollections(this HALResponse response, IEnumerable <KeyValuePair <string, IEnumerable <HALResponse> > > embeddedCollections)
        {
            foreach (var embeddedCollection in embeddedCollections)
            {
                response.AddEmbeddedCollection(embeddedCollection.Key, embeddedCollection.Value);
            }

            return(response);
        }
All Usage Examples Of Halcyon.HAL.HALResponse::AddEmbeddedCollection