Defining a Contructor wih a ~ (tilde)
Hi there:
I'm checking some article and I ran into this:
public partial class MyClass {
public MyClass(string something) {
// Some stuff
}
~MyClass() { // HERE: I know that this is the default constructor, but, what is "~" ?
// Some other stuff...
}
}
Thanks in advance for your answer.
Raael
Answers (2)
0
Hi Anoop,
Please try this SQL and let me know if it works for you
- declare @storeid bigint
- set @storeid=19
- select I.NameOfStores, I.ReferenceNo, SUM(Inwards.InwardQty) InwardQty, SUM(ISNULL(Issued.IssuedQty,0)) IssuedQty, SUM((ISNULL(Inwards.InwardQty,0)-ISNULL(Issued.IssuedQty,0)))as Balance
- from InventoryInwards as I
- LEFT JOIN
- (select ReferenceNo, nameofStores, ISNULL(Sum(ISNULL(Qty,0)),0) as InwardQty
- from InventoryInwards where StoreID=@storeid
- group By NameOfStores, ReferenceNo, Unit) as Inwards ON I.NameOfStores = Inwards.NameOfStores
- and i.ReferenceNo=Inwards.ReferenceNo
-
- left JOIN
- (select nameofStores, ISNULL(Sum(ISNULL(Qty,0)),0) as IssuedQty
- from InventoryIssued where StoreID=@storeid
- group By NameOfStores, ReferenceNo, unit) as Issued on I.NameOfStores= Issued.NameOfStores
-
-
-
- where i.StoreID = @storeid
- group by I.NameOfStores, I.ReferenceNo, I.Unit
Accepted 0
Thanks Ankit... that was I missing out.