15 types derived from Literal
System.Workflow.Activities (15)
Rules\Literal.cs (15)
1344internal class NullLiteral : Literal 1614internal class BoolLiteral : Literal 1664internal class ByteLiteral : Literal 1951internal class SByteLiteral : Literal 2222internal class CharLiteral : Literal 2508internal class DecimalLiteral : Literal 2754internal class ShortLiteral : Literal 3024internal class IntLiteral : Literal 3310internal class LongLiteral : Literal 3596internal class UShortLiteral : Literal 3882internal class UIntLiteral : Literal 4168internal class ULongLiteral : Literal 4422internal class DoubleLiteral : Literal 4688internal class FloatLiteral : Literal 4954internal class StringLiteral : Literal
150 references to Literal
System.Workflow.Activities (150)
Rules\ArithmeticLiteral.cs (1)
328MethodInfo opOverload = Literal.MapOperatorToMethod(operation, lhs, lhsExpression, rhs, rhsExpression, validator, out error);
Rules\Expressions.cs (15)
284resultExprInfo = Literal.AllowedComparison(lhsType, binaryExpr.Left, rhsType, binaryExpr.Right, binaryExpr.Operator, validation, out error); 305resultExprInfo = Literal.AllowedComparison(lhsType, binaryExpr.Left, rhsType, binaryExpr.Right, binaryExpr.Operator, validation, out error); 491if (methodInfo == Literal.ObjectEquality) 515Literal leftLiteral; 516Literal rightLiteral; 582leftLiteral = Literal.MakeLiteral(lhsType, lhsValue); 585rightLiteral = Literal.MakeLiteral(rhsType, rhsValue); 595leftLiteral = Literal.MakeLiteral(lhsType, lhsValue); 598rightLiteral = Literal.MakeLiteral(rhsType, rhsValue); 603leftLiteral = Literal.MakeLiteral(lhsType, lhsValue); 606rightLiteral = Literal.MakeLiteral(rhsType, rhsValue); 611leftLiteral = Literal.MakeLiteral(lhsType, lhsValue); 614rightLiteral = Literal.MakeLiteral(rhsType, rhsValue); 619leftLiteral = Literal.MakeLiteral(lhsType, lhsValue); 622rightLiteral = Literal.MakeLiteral(rhsType, rhsValue);
Rules\Literal.cs (123)
28private delegate Literal LiteralMaker(object literalValue); 69dictionary.Add(typeof(byte), new LiteralMaker(Literal.MakeByte)); 70dictionary.Add(typeof(sbyte), new LiteralMaker(Literal.MakeSByte)); 71dictionary.Add(typeof(short), new LiteralMaker(Literal.MakeShort)); 72dictionary.Add(typeof(int), new LiteralMaker(Literal.MakeInt)); 73dictionary.Add(typeof(long), new LiteralMaker(Literal.MakeLong)); 74dictionary.Add(typeof(ushort), new LiteralMaker(Literal.MakeUShort)); 75dictionary.Add(typeof(uint), new LiteralMaker(Literal.MakeUInt)); 76dictionary.Add(typeof(ulong), new LiteralMaker(Literal.MakeULong)); 77dictionary.Add(typeof(float), new LiteralMaker(Literal.MakeFloat)); 78dictionary.Add(typeof(double), new LiteralMaker(Literal.MakeDouble)); 79dictionary.Add(typeof(char), new LiteralMaker(Literal.MakeChar)); 80dictionary.Add(typeof(string), new LiteralMaker(Literal.MakeString)); 81dictionary.Add(typeof(decimal), new LiteralMaker(Literal.MakeDecimal)); 82dictionary.Add(typeof(bool), new LiteralMaker(Literal.MakeBool)); 83dictionary.Add(typeof(byte?), new LiteralMaker(Literal.MakeByte)); 84dictionary.Add(typeof(sbyte?), new LiteralMaker(Literal.MakeSByte)); 85dictionary.Add(typeof(short?), new LiteralMaker(Literal.MakeShort)); 86dictionary.Add(typeof(int?), new LiteralMaker(Literal.MakeInt)); 87dictionary.Add(typeof(long?), new LiteralMaker(Literal.MakeLong)); 88dictionary.Add(typeof(ushort?), new LiteralMaker(Literal.MakeUShort)); 89dictionary.Add(typeof(uint?), new LiteralMaker(Literal.MakeUInt)); 90dictionary.Add(typeof(ulong?), new LiteralMaker(Literal.MakeULong)); 91dictionary.Add(typeof(float?), new LiteralMaker(Literal.MakeFloat)); 92dictionary.Add(typeof(double?), new LiteralMaker(Literal.MakeDouble)); 93dictionary.Add(typeof(char?), new LiteralMaker(Literal.MakeChar)); 94dictionary.Add(typeof(decimal?), new LiteralMaker(Literal.MakeDecimal)); 95dictionary.Add(typeof(bool?), new LiteralMaker(Literal.MakeBool)); 135internal static Literal MakeLiteral(Type literalType, object literalValue) 168private static Literal MakeBool(object literalValue) 178private static Literal MakeByte(object literalValue) 188private static Literal MakeSByte(object literalValue) 198private static Literal MakeChar(object literalValue) 208private static Literal MakeDecimal(object literalValue) 218private static Literal MakeShort(object literalValue) 228private static Literal MakeInt(object literalValue) 238private static Literal MakeLong(object literalValue) 248private static Literal MakeUShort(object literalValue) 258private static Literal MakeUInt(object literalValue) 268private static Literal MakeULong(object literalValue) 278private static Literal MakeFloat(object literalValue) 288private static Literal MakeDouble(object literalValue) 298private static Literal MakeString(object literalValue) 955internal abstract bool Equal(Literal rhs); 1018internal abstract bool LessThan(Literal rhs); 1099internal abstract bool GreaterThan(Literal rhs); 1180internal abstract bool LessThanOrEqual(Literal rhs); 1261internal abstract bool GreaterThanOrEqual(Literal rhs); 1360internal override bool Equal(Literal rhs) 1365internal override bool LessThan(Literal rhs) 1423internal override bool GreaterThan(Literal rhs) 1485internal override bool LessThanOrEqual(Literal rhs) 1547internal override bool GreaterThanOrEqual(Literal rhs) 1629internal override bool Equal(Literal rhs) 1638internal override bool LessThan(Literal rhs) 1643internal override bool GreaterThan(Literal rhs) 1648internal override bool LessThanOrEqual(Literal rhs) 1653internal override bool GreaterThanOrEqual(Literal rhs) 1679internal override bool Equal(Literal rhs) 1732internal override bool LessThan(Literal rhs) 1785internal override bool GreaterThan(Literal rhs) 1838internal override bool LessThanOrEqual(Literal rhs) 1891internal override bool GreaterThanOrEqual(Literal rhs) 1966internal override bool Equal(Literal rhs) 2019internal override bool LessThan(Literal rhs) 2068internal override bool GreaterThan(Literal rhs) 2117internal override bool LessThanOrEqual(Literal rhs) 2166internal override bool GreaterThanOrEqual(Literal rhs) 2237internal override bool Equal(Literal rhs) 2290internal override bool LessThan(Literal rhs) 2343internal override bool GreaterThan(Literal rhs) 2396internal override bool LessThanOrEqual(Literal rhs) 2449internal override bool GreaterThanOrEqual(Literal rhs) 2523internal override bool Equal(Literal rhs) 2568internal override bool LessThan(Literal rhs) 2613internal override bool GreaterThan(Literal rhs) 2658internal override bool LessThanOrEqual(Literal rhs) 2703internal override bool GreaterThanOrEqual(Literal rhs) 2769internal override bool Equal(Literal rhs) 2822internal override bool LessThan(Literal rhs) 2871internal override bool GreaterThan(Literal rhs) 2920internal override bool LessThanOrEqual(Literal rhs) 2969internal override bool GreaterThanOrEqual(Literal rhs) 3039internal override bool Equal(Literal rhs) 3092internal override bool LessThan(Literal rhs) 3145internal override bool GreaterThan(Literal rhs) 3198internal override bool LessThanOrEqual(Literal rhs) 3251internal override bool GreaterThanOrEqual(Literal rhs) 3325internal override bool Equal(Literal rhs) 3378internal override bool LessThan(Literal rhs) 3431internal override bool GreaterThan(Literal rhs) 3484internal override bool LessThanOrEqual(Literal rhs) 3537internal override bool GreaterThanOrEqual(Literal rhs) 3611internal override bool Equal(Literal rhs) 3664internal override bool LessThan(Literal rhs) 3717internal override bool GreaterThan(Literal rhs) 3770internal override bool LessThanOrEqual(Literal rhs) 3823internal override bool GreaterThanOrEqual(Literal rhs) 3897internal override bool Equal(Literal rhs) 3950internal override bool LessThan(Literal rhs) 4003internal override bool GreaterThan(Literal rhs) 4056internal override bool LessThanOrEqual(Literal rhs) 4109internal override bool GreaterThanOrEqual(Literal rhs) 4183internal override bool Equal(Literal rhs) 4236internal override bool LessThan(Literal rhs) 4281internal override bool GreaterThan(Literal rhs) 4326internal override bool LessThanOrEqual(Literal rhs) 4371internal override bool GreaterThanOrEqual(Literal rhs) 4437internal override bool Equal(Literal rhs) 4486internal override bool LessThan(Literal rhs) 4535internal override bool GreaterThan(Literal rhs) 4584internal override bool LessThanOrEqual(Literal rhs) 4633internal override bool GreaterThanOrEqual(Literal rhs) 4703internal override bool Equal(Literal rhs) 4752internal override bool LessThan(Literal rhs) 4801internal override bool GreaterThan(Literal rhs) 4850internal override bool LessThanOrEqual(Literal rhs) 4899internal override bool GreaterThanOrEqual(Literal rhs) 4969internal override bool Equal(Literal rhs) 4978internal override bool LessThan(Literal rhs) 4987internal override bool GreaterThan(Literal rhs) 5000internal override bool LessThanOrEqual(Literal rhs) 5009internal override bool GreaterThanOrEqual(Literal rhs)
Rules\RuleValidation.cs (11)
688Literal leftLiteral, rightLiteral; 724leftLiteral = Literal.MakeLiteral(lhsRootType, parameters[0]); 725rightLiteral = Literal.MakeLiteral(rhsRootType, parameters[1]); 728leftLiteral = Literal.MakeLiteral(lhsRootType, parameters[0]); 729rightLiteral = Literal.MakeLiteral(rhsRootType, parameters[1]); 732leftLiteral = Literal.MakeLiteral(lhsRootType, parameters[0]); 733rightLiteral = Literal.MakeLiteral(rhsRootType, parameters[1]); 736leftLiteral = Literal.MakeLiteral(lhsRootType, parameters[0]); 737rightLiteral = Literal.MakeLiteral(rhsRootType, parameters[1]); 740leftLiteral = Literal.MakeLiteral(lhsRootType, parameters[0]); 741rightLiteral = Literal.MakeLiteral(rhsRootType, parameters[1]);