Answers for "how to create class in C#"

C#
1

C# Class

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MyClass
{
	public class MyClass
	{
      public string MyString;
      public string MyNewString { get; set; }
      string MyThirdString = "Number Three";
      private const int K = 9;
      
      public static Int32 MyStatic;
      public static int MyNewStatic;
        #region
          readoly string JustaString;
          #endregion 
      double MyDouble = 4.68;
    }
}
Posted by: Guest on June-29-2021
1

how to create class in C#

class ClassName
{
  
}
Posted by: Guest on November-11-2020

C# Answers by Framework

Browse Popular Code Answers by Language