static internal int GetCustomFieldFlid(XmlNode caller, IFwMetaDataCache mdc, ICmObject obj)
{
string fieldName = XmlUtils.GetManditoryAttributeValue(caller, "param");
// It would be nice to avoid all the possible throws for invalid fields, but hard
// to achieve in a static method.
try
{
int flid = mdc.GetFieldId2(obj.ClassID, fieldName, true);
return flid;
}
catch
{
return 0;
}
}
}