using System;
using System.Text;

struct Books
{
    public string title;
    public string Content;
    public double Len;
    public bool flag;
    public void display() 
    {
        Console.WriteLine(title);
        Console.WriteLine(Content);
        Console.WriteLine(Len);
        Console.WriteLine(flag);
    }
    public void getValues(string title1, string content1, double len1, bool flag1)
    {
        title = title1;
        Content = content1;
        Len = len1;
        flag = flag1;
    }
}

public class HelloWorld
{
    public static void Main()
    {
        Console.WriteLine("HELLO JSRUN     - from C# ");
        Books Js = new Books();
        Js.getValues("你不知道的JavaScript", "原型、this", 300D, true);
        Js.display();
    }
}
margintop(null) - 2019-06-24 0 人
C# 结构体学习
using System;
using NewtonSoft.Json;

public class HelloWorld
{
    public static void Main()
    {
        Console.WriteLine("HELLO JSRUN     - from C# ");
    }
}
unlonlyness(肠胃炎) - 2019-05-15 0 人
不能引入第三方库文件
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Data;
using System.Collections;

public class HelloWorld
{
    public static void Main()
    {
        DataTable dt = new DataTable();
        dt.Columns.Add("name");

        dt.Rows.Add("列2");
        
        //string[]arr = {"列1","列3","列4"};

        Console.WriteLine("123");

        // for(int i=0;i<dt.Columns;i++)
        // {
        //     Console.WriteLine(dr["name"].ToString());
        // }
        
        
        
        // foreach (DataRow s in dt.Rows.Cast<DataRow>().Where(r => arr.Contains(r["name"].ToString())).OrderByDescending(p=>p["val"]))
        // {
        //     Console.WriteLine(s["name"].ToString() + "--" + s["val"].ToString() + "<br/>");
        // }
        // Console.WriteLine("------------------1----------------<br/>");
        
        // foreach (DataRow s in dt.Rows.Cast<DataRow>().Where(r => !arr.Contains(r["name"].ToString())))
        // {
        //     Console.WriteLine(s["name"].ToString() + "--" + s["val"].ToString() + "<br/>");
        // }
        // Console.WriteLine("------------------2----------------<br/>");
        // string[] arr2=new string[0];
        // arr2 = new string[arr.Length];
        // arr.CopyTo(arr2,0);
        // foreach(string item in arr2)
        // {
        //     Console.WriteLine("--"+ item);
        // }
        
    }
}
tangxin099(前端大神) - 2019-07-05 0 人
C#測試常用
using System;

public class HelloWorld
{
    public static void Main()
    {
        Console.WriteLine("HELLO JSRUN     - from C# ");
        for(int i=0;i<=10;i++){
            Console.WriteLine("index:"+i);

        }
    }
}
justwewe(Two-Two.one) - 2019-05-13 0 人
测试C#运行
using System;
using System.Security.Cryptography;
using System.Collections.Generic;
using System.Text;


public class HelloWorld
{

        public static string decrypt(string 密文, string pwd = "1234567890123456")
        {

            RijndaelManaged rijndaelCipher = new RijndaelManaged();

            rijndaelCipher.Mode = CipherMode.CBC;

            rijndaelCipher.Padding = PaddingMode.PKCS7;

            rijndaelCipher.KeySize = 128;

            rijndaelCipher.BlockSize = 128;

            byte[] encryptedData = Convert.FromBase64String(密文);

            byte[] pwdBytes = System.Text.Encoding.UTF8.GetBytes(pwd);//password

            byte[] keyBytes = new byte[16];

            int len = pwdBytes.Length;

            if (len > keyBytes.Length) len = keyBytes.Length;

            System.Array.Copy(pwdBytes, keyBytes, len);

            rijndaelCipher.Key = keyBytes;

            //byte[] ivBytes = System.Text.Encoding.UTF8.GetBytes(iv);
            byte[] ivBytes = new byte[16];
            rijndaelCipher.IV = ivBytes;

            ICryptoTransform transform = rijndaelCipher.CreateDecryptor();

            byte[] plainText = transform.TransformFinalBlock(encryptedData, 0, encryptedData.Length);

            return Encoding.UTF8.GetString(plainText);


        }

    public static void Main()
    {
        var data = "XMhlgz6xA2VBsk/v1k1kdUkCfqXh/4FN55VyyiZJl73zSFR8EBp2DTm7NsNEQbhl6A/nWjPDunt6Y65L6q/ScMfUV7LZTIC+Z9MoPzRrSTE8WYlm6h+YI+nkDmLa4VxSVUmaWU7ISWlxJiJ7Vr3dY6PbPcl+IfGDFLN/QELcR4iGtAPmXfgBq6NVE2TenyOa4jW0Q8Wttf7c/9Rh9asU2j0MWvthyfT3NXmBIY2l817kbjaiSTtbUdrX3zjFqmIS+x6b6fbMHA7vq78dweumWa+umTCi9FsAmSOZn9sL9Lt3MpAeqf0sQLyllV5+M9SjxCbCKuw6PwvE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fj0Waac/RwJ4yGtPi2ko08AO+vs59jzfmUOu3KZ7sBmbU/+kBWmdlp2o9ALteVClwASjgYrfADaa9qGlsagY2Zft6gtBC62unaTo04m6W5TeZjiYo1qa/o8cAkFrbMvHQEB4wfEry1VxuXA7YFL+IiB++sRnqoCbsgu2iEV6Xv8LOEc1godsqLXmzTI0h+x894Nrs5cLiCIztcpjjB2oeVilHcI2Nnzk6y55kAwzx9baKEcjrxPODoU9Yoj2rvofIufoDaTy70H2fWX5T0ZqATLGYD9+O56aaiNjd3hTDCat5CDYp8cYemmtfUiDLcecGqXA4dkMF0AZkKGDWkMDk2uPy08PAOT0ds61ECPNOujnFRL9l3Zoa+zJuGdY189N12JbEgDcv60SgkDkS1A891mnMQcprBZ35udrKaO5egfDVBzX4/xhDPtcDuF6tQK4gPZ25hSwWzfsd3hX3tben56yj15kJyTKp6QdaZ4gqeWPIaxXVH2/7vSACtR9XWxnssopsqnf0a98+aDg0OyCUd2EA0T0PQSOLzILeSA6zbdesYhUpv4YaYsTSc/RwdOgUHiVZ1O3O84c2S8sFdPchn0ca4HBvTVMRz4iv4Xz3p0klRMYEPFVNHdJ6Yw3sCVcBt3XKBVzDubg/I7nmANYJ3HD3ZTAola3MYo26/20UealuNncBL5OVSU2Y9CQmjD9vIpHRpDkPZmv2PuQ5gaGCsIFrQUALKQX7nAg295kIz27wjkAkJE9cx+ZeDI56g6JUoNU1breUdvuPsij4Z2gSfTPcdYNT1Nxxifp02ATyTyLdOrwyfaKnSZfaaaAAJiejmwru0S0QWa0oRIUZp8M97uuFmN1NRPWdqduISEXThr4/FWptYKWdubUEwISFgvTBA0LhkqWqzxF3iYcxsYtx9TNAlfv7rFSSLqrpMGjM55aUmsSP3RxP7k5k=";
        var key = "NJT30NZ6EEH9J5ZJ";
        Console.WriteLine(decrypt(data,key));
    }
}
superpopredboy(陆俊杰 Jack) - 2019-04-24 0 人
c#123321
using System;

public class HelloWorld
{
    public static void Main()
    {
        Console.WriteLine("HELLO JSRUN     - from C# ");
    }
}
superpopredboy(陆俊杰 Jack) - 2019-04-23 0 人
12312312312312321
没有了
1/1
没有了