1using System.Collections;
47#region IBadEnumerable Members
55 return ((IEnumerable<BadObject>)
InnerArray).GetEnumerator();
62 IEnumerator IEnumerable.GetEnumerator()
80 StringBuilder sb =
new StringBuilder();
88 if (!done.Contains(element))
94 if (str.Contains(
"\n"))
96 str = str.Replace(
"\n",
"\n\t");
99 sb.AppendLine($
"\t{str}");
104 return sb.ToString();
110 StringBuilder sb =
new StringBuilder();
118 sb.AppendLine(
"RECURSION_PROTECT");
126 if (str.Contains(
"\n"))
128 str = str.Replace(
"\n",
"\n\t");
131 sb.AppendLine($
"\t{str}");
136 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.