示例#1
0
    private void SetAttributes(IEnumerable <AttributeSyntax> attributes)
    {
        Attributes = AttributeFactory.ParseValidAttributesSorted(attributes);

        Flags = AttributeFlags.None;
        for (int i = 0; i < Attributes.Length; i++)
        {
            Flags |= Attributes[i].Flag;

            if (Attributes[i] is FieldBehavior field)
            {
                Order = field.Order;
            }
        }
    }