const int x = 0; public const double gravitationalConstant = 6.673e-11; private const string productName = "Visual C#";
using System; using System.Text.RegularExpressions; class Program { static void Main() { // // String containing numbers. // string sentence = "10 cats, 20 dogs, 40 fish and 1 programmer."; // // Get all digit sequence as strings. // string[] digits = Regex.Split(sentence, @"\D+"); // // Now we have each number string. // foreach (string value in digits) { // // Parse the value to get the number. // int number; if (int.TryParse(value, out number)) { Console.WriteLine(value); } } } } Output 10 20 40 1
interface IExample{ public void funExample(); //Error: The modifier 'public' is not valid for this item. string fun2(string strParam1, string strParam2);//no error }
gridview.DataSource = ds; //ds is the dataset and filled with some data. gridview.DataBind();
<authentication mode= "Passport"/>