incorrect error highlight...

This class has certain public properties
using System;

namespace IOMarketDataApi
{
/// /// Data object for Margins /// ]]>
public class MarginDetails : ItemDetails
{
#region Declarations

private int mProductID;
private int mContractID;
private Double mBidMargin;
private Double mOfferMargin;

#endregion

#region Constructor

public MarginDetails() : base()
{
this.mBidMargin = Double.NaN;
this.mOfferMargin = Double.NaN;
this.mProductID = Int32.MinValue;
this.mContractID = Int32.MinValue;
}

#endregion

#region Properties

public int ProductID
{
get { return this.mProductID; }
set { this.mProductID = value; }
}


public int ContractID
{
get { return this.mContractID; }
set { this.mContractID = value; }
}

public double OfferMargin
{
get { return this.mOfferMargin; }
set { this.mOfferMargin = value; }
}


public double BidMargin
{
get { return this.mBidMargin; }
set { this.mBidMargin = value; }
}

#endregion
}
}

and I am reusing them further.

if (dtTable != null)
{
foreach (DataRow drRow in dtTable.Rows)
{
//Trace.WriteLine("Adding Trader item");
MarginDetails item = new MarginDetails();
item.#BidMargin# = (double) drRow["BidMargin"];

}
}

Please see ## what is incorrectly highlighted as Can not resolve symbol (even though the code was written with the help of code complete functionality..Compiler obv. does not see any problem...

Please sign in to leave a comment.