?????????????????г??????????????汾????
?????????
?????????Main????????????????dll?????Lib.dll?????????????
????Main????????
using Lib;
internal class Program
{
private static void Main(string[] args)
{
Console.WriteLine(ConstValue.MaxIntSize);
}
}
????Lib.dll??????
using System;
namespace Lib
{
public class ConstValue
{
public const Int32 MaxIntSize = 32;
}
}
??????Main??????Lib.dll?????б?????????????exe?Study.exe????????????? Study.exe
?????????32
???????????MaxIntSize???64?????£?
using System;
namespace Lib
{
public class ConstValue
{
public const Int32 MaxIntSize = 64??
}
}
????????Lib.dll???????±?????????????Lib.dll???·???Main?????????????????????????汾??
??????????Study.exe
?????????32
???????????д?????仯??