dynamic properties

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

    #1

    dynamic properties

    Hi all
    Is there a way to catch all property requests and resolve at runtime
    internally within the class?

    I ask because I'm looking into creating a dynamic CrystalReport web service,
    and all the sections are explicitly named properties in the generated asmx
    rather than being indexed.

    Thanks


  • Rick Spiewak

    #2
    Re: dynamic properties

    It sounds like you need to explicitly code the access to dynamic properties
    instead of letting VS.NET do it for you behind the scenes. Then, in the
    "Get" code, read your property values from the web.config file yourself.

    "Leon Jollans" <Leon.JollansRE MOVE__THIS@xama n.com> wrote in message
    news:%23TqOW7rd DHA.1128@tk2msf tngp13.phx.gbl. ..[color=blue]
    > Hi all
    > Is there a way to catch all property requests and resolve at runtime
    > internally within the class?
    >
    > I ask because I'm looking into creating a dynamic CrystalReport web[/color]
    service,[color=blue]
    > and all the sections are explicitly named properties in the generated asmx
    > rather than being indexed.
    >
    > Thanks
    >
    >[/color]


    Comment

    • Leon Jollans

      #3
      Re: dynamic properties

      I'm not sure I follow - what I'm wondering is if (via reflection or some
      such) I could write code like:

      public object aValue{
      get{
      return someIndexer[aValue];
      }
      }

      where aValue is undetermined until the call is made. I wouldn't expect this
      (if at all possible) to be simple, and certainly not as syntactically nice
      as the theoretical example above, but if mechanisms exist to allow this to
      happen, I'd like to find out how - it could be immensely useful.

      Leon

      "Rick Spiewak" <rickspiewak@mi ndspring.com> wrote in message
      news:e$#EDesdDH A.372@TK2MSFTNG P11.phx.gbl...[color=blue]
      > It sounds like you need to explicitly code the access to dynamic[/color]
      properties[color=blue]
      > instead of letting VS.NET do it for you behind the scenes. Then, in the
      > "Get" code, read your property values from the web.config file yourself.
      >
      > "Leon Jollans" <Leon.JollansRE MOVE__THIS@xama n.com> wrote in message
      > news:%23TqOW7rd DHA.1128@tk2msf tngp13.phx.gbl. ..[color=green]
      > > Hi all
      > > Is there a way to catch all property requests and resolve at runtime
      > > internally within the class?
      > >
      > > I ask because I'm looking into creating a dynamic CrystalReport web[/color]
      > service,[color=green]
      > > and all the sections are explicitly named properties in the generated[/color][/color]
      asmx[color=blue][color=green]
      > > rather than being indexed.
      > >
      > > Thanks
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...