1using System.Collections;
53 return ((IEnumerable<BadObject>)
InnerArray).GetEnumerator();
60 IEnumerator IEnumerable.GetEnumerator()
76 StringBuilder sb =
new StringBuilder();
84 if (!done.Contains(element))
89 if (str.Contains(
"\n"))
91 str = str.Replace(
"\n",
"\n\t");
94 sb.AppendLine($
"\t{str}");
105 StringBuilder sb =
new StringBuilder();
113 sb.AppendLine(
"RECURSION_PROTECT");
118 string str = element.
ToString().Trim();
120 if (str.Contains(
"\n"))
122 str = str.Replace(
"\n",
"\n\t");
125 sb.AppendLine($
"\t{str}");
130 return sb.ToString();
Implements the Scope for the Script Engine.
Implements a Dynamic List/Array for the BadScript Language.
override BadClassPrototype GetPrototype()
override string ToSafeString(List< BadObject > done)
override string ToString()
IEnumerator< BadObject > GetEnumerator()
Returns the Enumerator for this Array.
static BadClassPrototype Prototype
The Prototype for the BadScript Array.
BadArray(List< BadObject > innerArray)
Creates a new Instance of the BadScript Array.
static ? BadClassPrototype s_Prototype
The Prototype for the BadScript Array.
BadArray()
Creates a new Instance of the BadScript Array.
List< BadObject > InnerArray
The Inner Array.
The Base Class for all BadScript Objects.
string ToSafeString(List< BadObject > done)
Returns a String Representation of this Object. This function is recursion proof and supports circula...
override string ToString()
Returns a String Representation of this Object.
Implements a Class Prototype for the BadScript Language.
Helper Class that Builds a Native Class from a Prototype.
static BadClassPrototype GetNative(string name)
Returns a Native Class Prototype for the given Native Type.
Defines a BadScript Enumerable.
Contains the Interop Abstractions and Implementations for the BadScript2 Language.
Contains Runtime Type Objects.
Contains the Runtime Objects.