MembershipUserWrapper MyMemberShipUser 两者间是父子关系么~ 如果没有继承关系的类型 是不能用 as (Type)等转换的~~~
继承了 public class MyMemberShipUser : MembershipUser
http://www.cnblogs.com/guanjinke/archive/2006/12/04/581116.html http://stackoverflow.com/questions/5240143/invalidcastexception-unable-to-cast-objects-of-type-base-to-type-subclassgoogle it
如果没有继承关系的类型 是不能用 as (Type)等转换的~~~
public class MyMemberShipUser : MembershipUser
http://stackoverflow.com/questions/5240143/invalidcastexception-unable-to-cast-objects-of-type-base-to-type-subclassgoogle it