BadScript 2
Loading...
Searching...
No Matches
BadObjectExtensions.cs
Go to the documentation of this file.
2
6public static class BadObjectExtensions
7{
13 public static string ToSafeString(this BadObject obj)
14 {
15 return obj.ToSafeString(new List<BadObject>());
16 }
17
26 public static BadObject Dereference(this BadObject obj)
27 {
28 while (obj is BadObjectReference r)
29 {
30 obj = r.Resolve();
31 }
32
33 return obj;
34 }
35}
Object Extensions for the BadScript Runtime.
static string ToSafeString(this BadObject obj)
Returns a String Representation of this Object. This function is recursion proof and supports circula...
static BadObject Dereference(this BadObject obj)
Dereferences the Object and returns the underlying value.
The Base Class for all BadScript Objects.
Definition BadObject.cs:14
string ToSafeString(List< BadObject > done)
Returns a String Representation of this Object. This function is recursion proof and supports circula...
Implements the base functionality for a BadScript Reference.
Contains the Runtime Objects.
Definition BadArray.cs:10