Finalize() public static method

public static Finalize ( MsgsFile parent, SingleType thing, string>.KeyValuePair csharptype ) : void
parent MsgsFile
thing SingleType
csharptype string>.KeyValuePair
return void
Example #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));
 }
Example #2
0
        public static void WhatItIs(MsgFile parent, SingleType t)
        {
            if (t.IsPrimitve)
            {
                t.rostype = t.Type;
                SingleType.Finalize(parent, t);
                return;
            }

            t.Finalize(parent, t.input.Split(spliter, StringSplitOptions.RemoveEmptyEntries), false);
        }
Example #3
0
 public static void Finalize(MsgFile parent, SingleType thing)
 {
     string[] parts = thing.input.Split(' ');
     thing.rostype = parts[0];
     if (!KnownStuff.KnownTypes.ContainsKey(thing.rostype))
     {
         thing.meta = true;
     }
     else
     {
         parts[0] = KnownStuff.KnownTypes[thing.rostype];
     }
     thing.Finalize(parent, parts, true);
 }
Example #4
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);
 }
Example #5
0
 public static void Finalize(MsgsFile parent, SingleType thing, KeyValuePair<string, string> csharptype)
 {
     string[] PARTS = thing.input.Split(' ');
     thing.rostype = PARTS[0];
     if (!KnownStuff.KnownTypes.ContainsKey(thing.rostype))
         thing.meta = true;
     PARTS[0] = csharptype.Value;
     thing.Finalize(parent, PARTS, true);
 }