GetNormalizedName() public static méthode

public static GetNormalizedName ( String Name ) : String
Name String
Résultat String
Exemple #1
0
        public HttpHeader[] Get(String Name)
        {
            String NormalizedName = HttpHeader.GetNormalizedName(Name);

            if (Headers.ContainsKey(NormalizedName))
            {
                return(Headers[NormalizedName].ToArray());
            }
            else
            {
                return(new HttpHeader[0]);
            }
        }
Exemple #2
0
		public bool TryGetOne(String Name, out HttpHeader HttpHeader)
		{
			String NormalizedName = HttpHeader.GetNormalizedName(Name);

			List<HttpHeader> List;
			if (Headers.TryGetValue(NormalizedName, out List))
			{
				if (List.Count > 0)
				{
					HttpHeader = List[0];
					return true;
				}
				else
				{
					HttpHeader = null;
					return false;
				}
			}
			HttpHeader = null;
			return false;
		}
Exemple #3
0
        public bool TryGetOne(String Name, out HttpHeader HttpHeader)
        {
            String NormalizedName = HttpHeader.GetNormalizedName(Name);

            List <HttpHeader> List;

            if (Headers.TryGetValue(NormalizedName, out List))
            {
                if (List.Count > 0)
                {
                    HttpHeader = List[0];
                    return(true);
                }
                else
                {
                    HttpHeader = null;
                    return(false);
                }
            }
            HttpHeader = null;
            return(false);
        }