Removed some this's (this.) and converted some Foreach statements to LINQ statements.
This commit is contained in:
parent
c3c91250e2
commit
bec840f5e4
4 changed files with 40 additions and 77 deletions
|
@ -10,10 +10,7 @@ namespace sEngine.Scripting
|
|||
|
||||
public ScriptObject(Object instance)
|
||||
{
|
||||
if (instance == null)
|
||||
Instance = new Object();
|
||||
else
|
||||
Instance = instance;
|
||||
Instance = instance ?? new Object();
|
||||
}
|
||||
|
||||
~ScriptObject()
|
||||
|
@ -83,7 +80,7 @@ namespace sEngine.Scripting
|
|||
}
|
||||
catch
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("Error invoking method. Does the method exist?");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue