Пример #1
0
        public static void AcceptVisitor <TResult> (
            this FieldDefinition fieldDefinition,
            MetadataVisitor <TResult> visitor)
        {
            if (!visitor.ShouldTraverseInto(visitor.VisitFieldDefinition(fieldDefinition)))
            {
                return;
            }

            if (fieldDefinition.HasCustomAttributes)
            {
                fieldDefinition.CustomAttributes.AcceptVisitor(visitor);
            }

            fieldDefinition.FieldType.AcceptVisitor(visitor);
        }