Possible Duplicate:
What does the tilde before a function name mean in C#?
What is the tilde (~) in the enum definition?
I know "~" is for Finalzier methods but now I saw some C# code like this:
if (~IsFieldDeleted(oRptField.GetLayoutField()) != 0)
{
oCollection.Add(oRptField, oRptField.ObjectKeyString);
// some more stuff
}
notice that "~" in the first line?
and then if I go to implementation of IsFieldDeleted it is a method that returns an int.
private int IsFieldDeleted(LayoutLib.LayoutField oLayoutField)
{
Collection oColl = GetFieldIdsForField(oLayoutField);
return (oColl.Count == 0) ? 1 : 0;
}