Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Create ValueProvider instead of ILookup #40

Closed
neuecc opened this issue Jan 20, 2014 · 0 comments
Closed

Create ValueProvider instead of ILookup #40

neuecc opened this issue Jan 20, 2014 · 0 comments

Comments

@neuecc
Copy link
Owner

neuecc commented Jan 20, 2014

concept design

        public class ValueProvider
        {
            // object is List[String] or String.
            // optimize way, value is single in many cases.
            Dictionary<string, object> values = new Dictionary<string, object>();

            public ValueProvider(IDictionary<string, object> environment)
            {
                var queryString = "hoge=hage&huga=3";
                foreach (var item in queryString.Split('&'))
                {

                    // values.TryGetValue(
                }
            }

            /// <summary>Returns List[String] or String or Null</summary>
            public object GetValue(string key)
            {
            }
        }
@neuecc neuecc closed this as completed in 1e8d194 Jan 20, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant