Skip to content

Commit b416706

Browse files
authored
typeof supported
1 parent 85dfe1d commit b416706

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ExpressionEvaluator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ private enum ExpressionOperator
295295
// TODO Implement MidpointRounding Rounding variantes
296296
{ "round", (self, args) => { return args.Count > 1 ? Math.Round(Convert.ToDouble(self.Evaluate(args[0])), (int)self.Evaluate(args[1])) : Math.Round(Convert.ToDouble(self.Evaluate(args[0]))); } },
297297
{ "sign", (self, args) => Math.Sign(Convert.ToDouble(self.Evaluate(args[0]))) },
298+
{ "typeof", (self, args) => ((ClassOrTypeName)self.Evaluate(args[0])).Type },
298299
};
299300

300301
/// <summary>

0 commit comments

Comments
 (0)