Removed some this's (this.) and converted some Foreach statements to LINQ statements.

This commit is contained in:
darxval_cp 2012-05-31 18:55:23 -07:00
parent c3c91250e2
commit bec840f5e4
4 changed files with 40 additions and 77 deletions

View file

@ -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();
}