BetterMembership.Extensions.NameValueCollectionExtension.ContainsKey C# (CSharp) 메소드

ContainsKey() 공개 정적인 메소드

public static ContainsKey ( this collection, string key ) : bool
collection this
key string
리턴 bool
        public static bool ContainsKey(this NameValueCollection collection, string key)
        {
            if (collection == null)
            {
                return false;
            }

            if (collection.Get(key) == null)
            {
                return collection.AllKeys.Contains(key);
            }

            return true;
        }