Data beans

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • peteZ

    #1

    Data beans


    By data bean - all I am referring to is a object with set and get methods
    that simply holds data.

    Is there a name these go by in C# land ?

    - peteZ


  • NULL

    #2
    Re: Data beans

    On Wed, 3 Sep 2003 09:47:58 +1000, "peteZ" <peteZ@aol.co m> wrote:
    [color=blue]
    >
    >By data bean - all I am referring to is a object with set and get methods
    >that simply holds data.
    >
    >Is there a name these go by in C# land ?[/color]

    An object? LoL

    --
    NULL

    Comment

    • Joshua Coady

      #3
      Re: Data beans

      Properties

      public string Xyz
      {
      get { return xyz; }
      set { xyz = value; }
      }

      "peteZ" <peteZ@aol.co m> wrote in message
      news:OtQmmyacDH A.2436@TK2MSFTN GP12.phx.gbl...[color=blue]
      >
      > By data bean - all I am referring to is a object with set and get methods
      > that simply holds data.
      >
      > Is there a name these go by in C# land ?
      >
      > - peteZ
      >
      >[/color]


      Comment

      • Mickey Williams

        #4
        Re: Data beans

        Are you talking about CMP? If so, there's nothing like that in the current
        version of the SDK, although ObjectSpaces are a similar concept. If you just
        want a data container:

        [Serializable]
        public class Person
        {
        int _age;
        string _name = string.Empty;

        public int Age
        {
        get { return _age; }
        set { _age = value; }
        }

        public string Name
        {
        get { return _name; }
        set { _name = value; }
        }
        }

        --
        Mickey Williams
        Author, "Microsoft Visual C# .NET Core Reference", MS Press


        "peteZ" <peteZ@aol.co m> wrote in message
        news:OtQmmyacDH A.2436@TK2MSFTN GP12.phx.gbl...[color=blue]
        >
        > By data bean - all I am referring to is a object with set and get methods
        > that simply holds data.
        >
        > Is there a name these go by in C# land ?
        >
        > - peteZ
        >
        >[/color]


        Comment

        Working...