Answered How Transfer object into com+

  • Friday, June 20, 2008 1:07 AM
     
     
    Hi,ALL:
        Can we transfer object into com+ like this:
        [ComVisible(true)]
        [Serializable]
        public class CAccount
        {
           public string Name;
           public decimal Total;
        }
     
        public class BAL_Account:ServicedComponent
        {
            public void UpdateAccount(CAccount account)
            {
                   /// do something;
            }
        }

      or use

     [Serializable]
        public class CAccount:ServicedComponent

        {
           public string Name;
           public decimal Total;
        }
     
        public class BAL_Account:ServicedComponent
        {
            public void UpdateAccount(CAccount account)
            {
                   /// do something;
            }
        }
    • Edited by Dave Cai Friday, June 20, 2008 1:15 AM change
    • Moved by Bruno Yu Thursday, June 26, 2008 1:45 AM Off-Topic in BCL forum.
    •  

All Replies