ToManagedType() public method

public ToManagedType ( ) : Type
return System.Type
Esempio n. 1
0
	// Return the System.Type name corresponding to T, or null
	//  Returned as a string, because other wrappers do not have System.Types yet
	public string CppTypeToManaged (CppType t) {

		Type mtype = t.ToManagedType ();
		if (mtype != null && mtype != typeof (ICppObject)) {
			return mtype.FullName;
		}

		switch (t.ElementType) {

		case CppTypes.Class:
		case CppTypes.Struct:
		case CppTypes.Enum:

			var filter = GetFilterOrDefault (t);
			var qname = filter.TypeName.Replace ("::", ".");

			if (filter.ImplType == ImplementationType.@struct && !IsByVal (t))
				return qname + "&";
			else
				return qname;

		}

		return null;
	}