承接上文 对象的赋值(调用方式都一样不再阐述) .net篇(环境为vs2012+Spring.Core.dll v1.31) public class PropertyDemo{ public System.Collections.ArrayList PropertyList { get; set; } public System.Collections.Specialized.HybridDictionary PropertyDictionary { get; set; } public Sy…
spring是一个轻量级的控制反转(IoC)和面向切面(AOP)的容器框架 .net篇(环境为vs2012+Spring.Core.dll) 新建一个控制台 using Spring.Context; using Spring.Context.Support; using System; namespace SpringBase{ class Program { static void Main(string[] args){ IoCMethod(); Console.ReadLine(); }…
承接上文 ObjectFactory与IFactoryObject的杂谈 .net篇(环境为vs2012+Spring.Core.dll v1.31) public class parent { public string Name { get; set; } public int Age { get; set; } } public class CustomFactory : Spring.Objects.Factory.IFactoryObject { public object GetOb…
承接上文 抽象对象和子对象 .net篇(环境为vs2012+Spring.Core.dll v1.31) public class parent { public string Name { get; set; } public int Age { get;set; } } public class chlid { public string Name { get; set; } public int Age { get; set; } } <object id="p" type…
承接上文 自定义类型转换器 .net篇(环境为vs2012+Spring.Core.dll v1.31) public class CustomeConverter : TypeConverter{ public override bool CanConvertFrom( ITypeDescriptorContext context, Type sourceType){ return true; } public override object ConvertFrom( ITypeDescrip…
承接上文 引用其他对象或类型的成员 .net篇(环境为vs2012+Spring.Core.dll v1.31) public class Person { public string Name { get; set; } public static int Age { get; set; } public string sex; public static int Add(int x, int y){ return x + y; } public int Add(int x, int y,in…