Ecologylab.BigSemantics.MetadataNS.MetadataFieldDescriptor.DeriveMmName C# (CSharp) Method

DeriveMmName() private method

private DeriveMmName ( ) : String
return String
        private String DeriveMmName()
        {
            String result	= null;

            FieldInfo thatField = this.Field;

            foreach (CustomAttributeData cad in thatField.CustomAttributes)
            {
                if (cad.AttributeType == typeof(MmName))
                {
                    result = (String) cad.ConstructorArguments[0].Value;
                    break;
                }
            }

            if (result == null)
            {
                result = "";//TODO FIXME XMLTools.GetXmlTagName(thatField.Name, null);
                //if (!this.IsScalar)
                    //System.Console.WriteLine("Missing @mm_name annotation for " + thatField + "\tusing " + result);
            }

            return result;
        }