Test() public method

public Test ( string>.KeyValuePair candidate ) : bool
candidate string>.KeyValuePair
return bool
Ejemplo n.º 1
0
 public static SingleType WhatItIs(MsgsFile parent, SingleType t)
 {
     foreach (KeyValuePair <string, string> test in KnownTypes)
     {
         if (t.Test(test))
         {
             t.rostype = t.Type;
             return(t.Finalize(parent, test));
         }
     }
     return(t.Finalize(parent, t.input.Split(spliter, StringSplitOptions.RemoveEmptyEntries), false));
 }
Ejemplo n.º 2
0
 public static SingleType WhatItIs(MsgsFile parent, SingleType t)
 {
     foreach (KeyValuePair<string, string> test in KnownTypes)
     {
         if (t.Test(test))
         {
             t.rostype = t.Type;
             return t.Finalize(parent, test);
         }
     }
     return t.Finalize(parent, t.input.Split(spliter, StringSplitOptions.RemoveEmptyEntries), false);
 }