Adf.Base.Messaging.MessagingExtensions.IsNumeric C# (CSharp) Method

IsNumeric() public static method

public static IsNumeric ( this definition ) : bool
definition this
return bool
        public static bool IsNumeric(this FieldDefinition definition)
        {
            return (definition.Type == FieldDefinitionType.Amount || definition.Type == FieldDefinitionType.Decimal || definition.Type == FieldDefinitionType.Int16 ||
                    definition.Type == FieldDefinitionType.Int32 || definition.Type == FieldDefinitionType.Int64 || definition.Type == FieldDefinitionType.Number ||
                    definition.Type == FieldDefinitionType.UInt16 ||definition.Type == FieldDefinitionType.UInt32 || definition.Type == FieldDefinitionType.UInt64 ||
                    definition.Type == FieldDefinitionType.InvertedAmount);
        }