"markus wolfgart" <markus.wolfgar t@dlr.dewrote in message
news:6nfpkqFjok 6jU1@mid.dfncis .de...
Nothing wrong with the struct, but with the code that accesses the
constant. The "const" is automatically considered "static", which means that
you have to access it like a static member, using the name of the struct
instead of the instance:
PFD_Order_T.key _order_id instead of pfdorder.key_or der_id.
news:6nfpkqFjok 6jU1@mid.dfncis .de...
public struct PFD_Order_T
{
[...]
public const string key_order_id = "order_id";
[...]
PFD_Order_T PfdOrder;
[...]
pfdorder.order_ id =
extract_from_or der_line(fileLi ne,pfdorder.key _order_id); <=== My problem
[...]
I could not select my constant part of my struct like I demonstrate above.
Means pfdorder.key_or der_id is for me not visible in vs2005 where
as pfdorder.order_ id could be selected.
>
Any hints whats wrong with my definition of the struct PFD_Order_T.
{
[...]
public const string key_order_id = "order_id";
[...]
PFD_Order_T PfdOrder;
[...]
pfdorder.order_ id =
extract_from_or der_line(fileLi ne,pfdorder.key _order_id); <=== My problem
[...]
I could not select my constant part of my struct like I demonstrate above.
Means pfdorder.key_or der_id is for me not visible in vs2005 where
as pfdorder.order_ id could be selected.
>
Any hints whats wrong with my definition of the struct PFD_Order_T.
constant. The "const" is automatically considered "static", which means that
you have to access it like a static member, using the name of the struct
instead of the instance:
PFD_Order_T.key _order_id instead of pfdorder.key_or der_id.
Comment