TypeReference.GetNPType C# (CSharp) Method

GetNPType() public method

public GetNPType ( ) : string
return string
	public string GetNPType ()
	{
		if (np_type == null) {
			switch (Value) {
				case "int":
				case "guint32":
				case "uint32_t":
				case "gint32":
				case "int32_t":
					np_type = "i";
					break;
				case "bool":
				case "gboolean":
					np_type = "b";
					break;
				case "double":
				case "int64_t":
				case "gint64":
				case "uint64_t":
				case "guint64":
					np_type = "d";
					break;
				case "char*":
					np_type = "s";
					break;
				case "void":
					np_type = "v";
					break;
				default:
					np_type = "o";
					break;
			}
		}
		return np_type;
	}