Exemplo n.º 1
0
        public static string CXXFieldDeclaration(this FieldDefinition field)
        {
            if (field.HasConstant && !field.IsStatic)
            {
            }
            string res =
                (field.IsStatic ? "static " : "") +
                (field.FieldType.IsGenericParameter ? $"RTCLI::TField<{field.CXXTypeName()}> " :
                 field.FieldType.IsValueType ? $"{field.CXXTypeName()} " : $"RTCLI::TRef<{field.CXXTypeName()}> ") +
                $"{Utilities.GetCXXValidTokenString(field.Name)};";

            return(res);
        }