private string CSharpName(MetaNullableType mtype, MetaModel mmodel, ClassKind kind = ClassKind.None, bool fullName = false)
        {
            string result = this.CSharpName(mtype.InnerType, mmodel, kind, fullName);

            if (mtype.InnerType is MetaPrimitiveType)
            {
                MetaPrimitiveType mpt = (MetaPrimitiveType)mtype.InnerType;
                if (mpt.Name != "object" || mpt.Name != "string" || mpt.Name != "ModelObject")
                {
                    result = result + "?";
                }
            }
            return(result);
        }
Beispiel #2
0
     /// <summary>
 	/// Implements the constructor: MetaNullableType()
 	/// Direct superclasses: global::MetaDslx.Core.MetaType
 	/// All superclasses: global::MetaDslx.Core.MetaType
     /// </summary>
     public virtual void MetaNullableType(MetaNullableType @this)
     {
         this.MetaType(@this);
     }