private static string GetClrType()

in tools/Elastic.CommonSchema.Generator/Projection/ProjectionTypeExtensions.cs [58:88]


		private static string GetClrType(this FieldType fieldType)
		{
			switch (fieldType)
			{
				case FieldType.Keyword:
				case FieldType.ConstantKeyword:
				case FieldType.Flattened:
				case FieldType.MatchOnlyText:
				case FieldType.Wildcard:
				case FieldType.Text:
				case FieldType.Ip:
					return "string";
				case FieldType.Long:
					return "long";
				case FieldType.Integer:
					return "int";
				case FieldType.Date:
					return "DateTimeOffset";
				case FieldType.Nested:
				case FieldType.Object:
					return "object";
				case FieldType.ScaledFloat:
				case FieldType.Float:
					return "float";
				case FieldType.GeoPoint:
					return "Location";
				case FieldType.Boolean:
					return "bool";
				default: throw new ArgumentOutOfRangeException(fieldType.ToString());
			}
		}