52 "Version.ChangeVersion",
81 return propName is
"Major" or
"Minor" or
"Build" or
"Revision" ||
82 base.HasProperty(propName, caller);
88 return propName
switch
134 if (args.Length == 2)
136 return new BadVersion(
new Version((
int)major.Value, (
int)minor.Value));
144 if (args.Length == 3)
146 return new BadVersion(
new Version((
int)major.Value, (
int)minor.Value, (
int)build.Value));
154 if (args.Length == 4)
Implements a Version Object.
static readonly BadClassPrototype s_Prototype
The Version Class Prototype.
readonly Version m_Version
The Inner Version Object.
bool Equals(IBadNative other)
Checks if the Version is equal to another Version.
static readonly BadClassPrototype Prototype
The Version Class Prototype.
override BadClassPrototype GetPrototype()
readonly BadObjectReference m_ChangeVersion
The Change Version Function Reference.
override BadObjectReference GetProperty(string propName, BadScope? caller=null)
Returns a Reference to the Property with the given Name.The Property Reference
BadVersion(Version version)
Creates a new Version Object.
object Value
The Value of the Native Object.
override string ToSafeString(List< BadObject > done)
override bool HasProperty(string propName, BadScope? caller=null)
Returns true if the object contains a given property or there exists an extension for the current Ins...
static BadObject VersionCtor(BadExecutionContext ctx, BadObject[] args)
The Version Constructor.
Type Type
The Type of the Native Object.
The Execution Context. Every execution of a script needs a context the script is running in....
BadScope Scope
The Root Scope of the Context.
Implements the Scope for the Script Engine.
Gets thrown by the runtime.
static BadRuntimeException Create(BadScope? scope, string message)
Creates a new BadScriptException.
Non Generic Interop Function.
The Base Class for all BadScript Objects.
virtual BadObjectReference GetProperty(string propName, BadScope? caller=null)
Returns a Reference to the Property with the given Name.
Implements the base functionality for a BadScript Reference.
static BadObjectReference Make(string refText, Func< BadObject > getter, Action< BadObject, BadPropertyInfo?>? setter=null, Action? delete=null)
Creates a new Reference Object.
Implements a Class Prototype for the BadScript Language.
Implements a Native Class Prototype.
Defines properties for Native Types.
Implements the Interface for Native Numbers.
Implements the Interface for Native Strings.
Contains Versioning Extensions and APIs for the BadScript2 Runtime.
Contains the Error Objects for the BadScript2 Language.
Contains the Interop Function Classes for the BadScript2 Language.
Contains the Native Runtime Objects.
Contains Runtime Type Objects.
Contains the Runtime Objects.
Contains the Runtime Implementation.