Static Constants in C#

前端 未结 3 1092
谎友^
谎友^ 2020-12-09 14:17

I have this code;

using System;

namespace Rapido
{
    class Constants
    {
        public static const string FrameworkName = \"Rapido Framework\";
    }          


        
3条回答
  •  误落风尘
    2020-12-09 15:15

    public static class Constants
    {
        public const string FrameworkName = "Rapido Framework";
    }
    

提交回复
热议问题