private var a:Loader = new Loader(); private function test():void { a.load(new URLRequest("assets/冷却液管.png")); a.contentLoaderInfo.addEventListener(Event.COMPLETE, an); } private function an(evt:Event):void { var hh:BitmapData = new BitmapData(a…
public class A { public int Property1 { get; set; } } static void Main(){ A aa = new A(); Type type = aa.GetType();//获取类型 System.Reflection.PropertyInfo propertyInfo = type.GetProperty("Property1"); propertyInfo.SetValue(aa, , null);//给对应属性赋值 in…