Rules for Programming Vipers

Release 1.0 - ...

Viper Parameters

The following types are supported for viper parameters:

Type .Net type Description
Boolean System.Boolean Boolean value.
Float System.Double Double precision floating point number.
Integer System.Int32 32-bit signed integer.
String System.String Represents text as a series of Unicode characters.
DateTime System.DateTime An instant in time, typically expressed as a date and time of day.
Locator Smartsite.Core.Locator Represents an extended URI.
DataTable System.Data.IDataReader Represents one table of in-memory data.
Collection Smartsite.Core.CollectionParam<T> A generic collection of name-value pairs.
Any System.Object Any one of the above listed types.
Enum Derived from System.Enum Internally defined enumeration.

 

Overloads

Viper overloads are aggregated into a single documentation page.

Overloads:

  • Must return the same type.
  • Parameters with the same name must have the same inline documentation.
  • Must use the same inline documentation for the return type.

Null values

A viper that receives null in one or more of its parameters is not invoked, but instead null is returned as its result.
A null return value triggers the default handling (set by the named parameter default).