protected override void ConvertStart() { _inList.Clear(); _listDepth = 0; _inTable = false; CurrentLink = null; }
static StackObject *Clear_5(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Collections.Generic.Stack <ILRuntime.Runtime.Intepreter.ILTypeInstance> instance_of_this_method = (System.Collections.Generic.Stack <ILRuntime.Runtime.Intepreter.ILTypeInstance>) typeof(System.Collections.Generic.Stack <ILRuntime.Runtime.Intepreter.ILTypeInstance>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.Clear(); return(__ret); }
public static void Demo() { Console.WriteLine("Stack......"); System.Collections.Generic.Stack <string> names = new System.Collections.Generic.Stack <string>(); names.Push("Andrew"); names.Push("Bobby"); names.Push("Candy"); names.Push("Dana"); names.Push("Edith"); Console.WriteLine("Default content of stack"); foreach (string name in names) { Console.WriteLine(name); } Console.WriteLine("\nPopping '{0}'", names.Pop()); Console.WriteLine("Peek at next item to display what will" + " be destacked: {0}", names.Peek()); Console.WriteLine("Now, after peek, popping '{0}'", names.Pop()); System.Collections.Generic.Stack <string> stack2 = new System.Collections.Generic.Stack <string>(names.ToArray()); Console.WriteLine("\nContents of the first copy:"); foreach (string name in stack2) { Console.WriteLine(name); } string[] array2 = new string[names.Count * 2]; names.CopyTo(array2, names.Count); System.Collections.Generic.Stack <string> stack3 = new System.Collections.Generic.Stack <string>(array2); Console.WriteLine("\nContents of the second copy, with " + "duplicates and nulls:"); foreach (string name in stack3) { Console.WriteLine(name); } Console.WriteLine("\nstack2.Contains(\"Dana\") = {0}", stack2.Contains("Dana")); Console.WriteLine("\nstack2.Clear()"); stack2.Clear(); Console.WriteLine("\nstack2.Count = {0}", stack2.Count); Console.WriteLine("End of Stack"); }
public virtual void Dispose() { if (stack != null) { stack.Clear(); stack = null; } if (topElement != null) { topElement.Dispose(); topElement = null; } if (rootElement != null) { rootElement.Dispose(); rootElement = null; } }
public System.Collections.Generic.IDictionary <string, string> Parse( System.IO.Stream input) { _data.Clear(); _context.Clear(); // https://dotnetfiddle.net/rrR2Bb YamlDotNet.RepresentationModel.YamlStream yaml = new YamlDotNet.RepresentationModel.YamlStream(); yaml.Load(new System.IO.StreamReader(input, detectEncodingFromByteOrderMarks: true)); foreach (YamlDotNet.RepresentationModel.YamlDocument doc in yaml.Documents) { YamlDotNet.RepresentationModel.YamlMappingNode mapping = (YamlDotNet.RepresentationModel.YamlMappingNode)doc.RootNode; // The document node is a mapping node VisitYamlMappingNode(mapping); } return(_data); }
public void clear() { internal_stack.Clear(); }
public void Clear() => stack.Clear();
public void Clear() { innerStack.Clear(); }