FubuMVC.Core.ServiceBus.Runtime.Headers.NameValueHeaders.Keys C# (CSharp) Method

Keys() public method

public Keys ( ) : IEnumerable
return IEnumerable
        public IEnumerable<string> Keys()
        {
            return _inner.AllKeys;
        }

Usage Example

Esempio n. 1
0
        public void get_keys_from_name_value_collection()
        {
            var values = new NameValueCollection();
            values["a"] = "1";
            values["b"] = "2";
            values["c"] = "3";

            var headers = new NameValueHeaders(values);

            headers.Keys().ShouldHaveTheSameElementsAs("a", "b", "c");
        }