示例#1
0
 public bool Matches(string resource, string field)
 {
     if (resource != null && field != null)
     {
         return((Resource.ToLower() == resource.ToLower())
                &&
                (ParamName.ToLower() == field.ToLower()));
     }
     else
     {
         return(false);
     }
 }
示例#2
0
        public override string ToString()
        {
            string path = Query.ToString();

            return(string.Format("{0}.{1}->{2}", Resource.ToLower(), ParamName.ToLower(), Query.ToString()));
        }
示例#3
0
文件: Definition.cs 项目: jjrdk/spark
 public override string ToString() => $"{Resource.ToLower()}.{ParamName.ToLower()}->{Query}";