예제 #1
0
        public override IDeclaredElement GetDeclaredElement()
        {
            ITypeElement declaredType = GetDeclaredType();

            if (declaredType == null)
            {
                return(null);
            }

            return(MiscUtil.EnumerateMembers(declaredType, FieldName, false)
                   .Where(member => member as IField != null)
                   .FirstOrDefault());
        }