static PrimitiveConverter() { KeyValuePair <Type, IPrimitiveTypeConverter>[] spatialPrimitiveTypeConverters = new KeyValuePair <Type, IPrimitiveTypeConverter>[] { new KeyValuePair <Type, IPrimitiveTypeConverter>(typeof(GeographyPoint), geographyTypeConverter), new KeyValuePair <Type, IPrimitiveTypeConverter>(typeof(GeographyLineString), geographyTypeConverter), new KeyValuePair <Type, IPrimitiveTypeConverter>(typeof(GeographyPolygon), geographyTypeConverter), new KeyValuePair <Type, IPrimitiveTypeConverter>(typeof(GeographyCollection), geographyTypeConverter), new KeyValuePair <Type, IPrimitiveTypeConverter>(typeof(GeographyMultiPoint), geographyTypeConverter), new KeyValuePair <Type, IPrimitiveTypeConverter>(typeof(GeographyMultiLineString), geographyTypeConverter), new KeyValuePair <Type, IPrimitiveTypeConverter>(typeof(GeographyMultiPolygon), geographyTypeConverter), new KeyValuePair <Type, IPrimitiveTypeConverter>(typeof(Geography), geographyTypeConverter), new KeyValuePair <Type, IPrimitiveTypeConverter>(typeof(GeometryPoint), geometryTypeConverter), new KeyValuePair <Type, IPrimitiveTypeConverter>(typeof(GeometryLineString), geometryTypeConverter), new KeyValuePair <Type, IPrimitiveTypeConverter>(typeof(GeometryPolygon), geometryTypeConverter), new KeyValuePair <Type, IPrimitiveTypeConverter>(typeof(GeometryCollection), geometryTypeConverter), new KeyValuePair <Type, IPrimitiveTypeConverter>(typeof(GeometryMultiPoint), geometryTypeConverter), new KeyValuePair <Type, IPrimitiveTypeConverter>(typeof(GeometryMultiLineString), geometryTypeConverter), new KeyValuePair <Type, IPrimitiveTypeConverter>(typeof(GeometryMultiPolygon), geometryTypeConverter), new KeyValuePair <Type, IPrimitiveTypeConverter>(typeof(Geometry), geometryTypeConverter) }; primitiveConverter = new PrimitiveConverter(spatialPrimitiveTypeConverters); }
static PrimitiveConverter() { KeyValuePair<Type, IPrimitiveTypeConverter>[] spatialPrimitiveTypeConverters = new KeyValuePair<Type, IPrimitiveTypeConverter>[] { new KeyValuePair<Type, IPrimitiveTypeConverter>(typeof(GeographyPoint), geographyTypeConverter), new KeyValuePair<Type, IPrimitiveTypeConverter>(typeof(GeographyLineString), geographyTypeConverter), new KeyValuePair<Type, IPrimitiveTypeConverter>(typeof(GeographyPolygon), geographyTypeConverter), new KeyValuePair<Type, IPrimitiveTypeConverter>(typeof(GeographyCollection), geographyTypeConverter), new KeyValuePair<Type, IPrimitiveTypeConverter>(typeof(GeographyMultiPoint), geographyTypeConverter), new KeyValuePair<Type, IPrimitiveTypeConverter>(typeof(GeographyMultiLineString), geographyTypeConverter), new KeyValuePair<Type, IPrimitiveTypeConverter>(typeof(GeographyMultiPolygon), geographyTypeConverter), new KeyValuePair<Type, IPrimitiveTypeConverter>(typeof(Geography), geographyTypeConverter), new KeyValuePair<Type, IPrimitiveTypeConverter>(typeof(GeometryPoint), geometryTypeConverter), new KeyValuePair<Type, IPrimitiveTypeConverter>(typeof(GeometryLineString), geometryTypeConverter), new KeyValuePair<Type, IPrimitiveTypeConverter>(typeof(GeometryPolygon), geometryTypeConverter), new KeyValuePair<Type, IPrimitiveTypeConverter>(typeof(GeometryCollection), geometryTypeConverter), new KeyValuePair<Type, IPrimitiveTypeConverter>(typeof(GeometryMultiPoint), geometryTypeConverter), new KeyValuePair<Type, IPrimitiveTypeConverter>(typeof(GeometryMultiLineString), geometryTypeConverter), new KeyValuePair<Type, IPrimitiveTypeConverter>(typeof(GeometryMultiPolygon), geometryTypeConverter), new KeyValuePair<Type, IPrimitiveTypeConverter>(typeof(Geometry), geometryTypeConverter) }; primitiveConverter = new PrimitiveConverter(spatialPrimitiveTypeConverters); }