codedom property return

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?SmFybGF4bGU=?=

    codedom property return

    I'm new to using the codedom to generate code and had a question about
    returning a value from a method call in a property...

    i have this...

    property.GetSta tements.Add(new CodeMethodRetur nStatement(new
    CodeFieldRefere nceExpression(n ew CodeThisReferen ceExpression(), "_" +
    fieldName)));

    to create...

    get { return _fieldname; }

    but I need to create...

    get { return differentstatic object.staticme thodname<fieldt ype>(ref
    _fieldname); }

    anyone know a good way to do this?

    Thanks.



Working...