using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace stringdemo
{
class Program
{
static void Main(string[] args)
{
unsafe
{
List<string> list = new List<string>();
list.Add("str1");
list.Add("str2");
list.Add("str3");
list.Add("str4");
string t0 = list[0];
string temp = "Hello";
fixed (char* p1 = list[0])
{
Console.WriteLine((int)p1);
}
fixed (char* p2 = temp)
{
Console.WriteLine((int)p2);
}
Console.ReadLine();
}
}
}
}
//45032192
//45032288