Smrf.NodeXL.UnitTests.MockMetadataProvider.GetRequiredValue C# (CSharp) Method

GetRequiredValue() public method

public GetRequiredValue ( String key, Type valueType ) : Object
key String
valueType System.Type
return Object
    GetRequiredValue
    (
        String key,
        Type valueType
    )
    {
        Object oValue;

        if ( !m_oMetadataProvider.TryGetValue(key, out oValue) )
        {
            throw new ApplicationException("Value not found.");
        }

        return (oValue);
    }