Below is the sample code of one of my class:
#region Constructors
public ItemMaster()
{ }
public ItemMaster(string argItemName, string argItemCode, decimal? argStockInHand, decimal? argAlertLevelQty, string argUnit, decimal? argDiscount, string argWhetherInPercent, int argCategoryID)
{
this.ItemName = argItemName;
this.ItemCode = argItemCode;
this.StockInHand = argStockInHand;
this.AlertLevelQty = argAlertLevelQty;
this.Unit = argUnit;
this.Discount = argDiscount;
this.WhetherInPercent = argWhetherInPercent;
this.CategoryID = argCategoryID;
}
#endregion
When to use the former (the blank one there) and when to use the latter? If I leave it just blank inside brackets, but do pass the parameters, will it work?