AskGeo .NET  1.1.0
AskGeo Libraries for .NET
 All Classes Namespaces Functions Variables Enumerations Pages
Public Member Functions | Static Public Attributes
AskGeo.Base.FieldType Class Reference

Many of the accessors on the map query result classes return String representations of the fields, even if the underlying data might be better represented by a different type. All fields returned in this manner are enumerated by other classes that implement the DataFieldInterface. That interface includes an accessor that returns the FieldType of the field in question. More...

List of all members.

Public Member Functions

String GetCSharpName ()
 The C# type name for the logical type represented by this enumerated value.

Static Public Attributes

static readonly FieldType StringType = new FieldType("String")
 Best represented by a C# String type.
static readonly FieldType BooleanType = new FieldType("bool")
 Best represented by a C# bool type.
static readonly FieldType IntegerType = new FieldType("int")
 Best represented by a C# int type.
static readonly FieldType FloatType = new FieldType("float")
 Best represented by a C# float type.

Detailed Description

Many of the accessors on the map query result classes return String representations of the fields, even if the underlying data might be better represented by a different type. All fields returned in this manner are enumerated by other classes that implement the DataFieldInterface. That interface includes an accessor that returns the FieldType of the field in question.

In most cases, users of AskGeo will not need to concern themselves with this, as typed accessors have been provided that allow direct access to the metadata fields without the use of the DataFieldInterface.


Member Function Documentation

String AskGeo.Base.FieldType.GetCSharpName ( )

The C# type name for the logical type represented by this enumerated value.

Returns:
the C# type name as a String.

Member Data Documentation

readonly FieldType AskGeo.Base.FieldType.BooleanType = new FieldType("bool")
static

Best represented by a C# bool type.

readonly FieldType AskGeo.Base.FieldType.FloatType = new FieldType("float")
static

Best represented by a C# float type.

readonly FieldType AskGeo.Base.FieldType.IntegerType = new FieldType("int")
static

Best represented by a C# int type.

readonly FieldType AskGeo.Base.FieldType.StringType = new FieldType("String")
static

Best represented by a C# String type.


The documentation for this class was generated from the following file: