news:6n************@mid.dfncis.de...
public struct PFD_Order_TNothing wrong with the struct, but with the code that accesses the
{
[...]
public const string key_order_id = "order_id";
[...]
PFD_Order_T PfdOrder;
[...]
pfdorder.order_id =
extract_from_order_line(fileLine,pfdorder.key_orde r_id); <=== My problem
[...]
I could not select my constant part of my struct like I demonstrate above.
Means pfdorder.key_order_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_order_id.