Sdl.Web.Common/Models/RegionModelSet.cs
/// <summary>
/// Tries to get a Region by its name.
/// </summary>
/// <param name="name">The name of the Region.</param>
/// <param name="region">The Region or <c>null</c> if no Region exists with the given name.</param>
/// <returns><c>true</c> if a Region exists with the given name.</returns>
/// <remarks>This method has the same signature as <c>IDictionary&lt;string, RegionModel&gt;</c> for compatibility purposes.</remarks>
Tries to get a Region by its name.
Tries to get a Region by its name .
public bool TryGetValue(string name, out RegionModel region)
        {
            region = this.FirstOrDefault(r => r.Name == name);
            return (region != null);
        }
public bool TryGetValue ( string name , out RegionModel region ) { region = this . FirstOrDefault ( r => r . Name == name ) ; return ( region != null ) ; }
Tries to get a Region by its name.
Tries to get a Region by its name .
None
name
string
The name of the Region.
The name of the Region .
RegionModel
out
region
The Region or null
The Region or null
remarks
This method has the same signature as IDictionary
This method has the same signature as IDictionary