BaseJump.Core.Metadata.ModelMetadataProvider.GetAttributes C# (CSharp) Method

GetAttributes() private method

private GetAttributes ( ) : IEnumerable
return IEnumerable
        private IEnumerable<CustomAttributeData> GetAttributes()
        {
            var info = UnwrapNullable(metadata.PropertyType.GetTypeInfo());

            foreach (var attribute in info.CustomAttributes)
            {
                yield return attribute;
            }

            foreach (var attribute in propertyInfo.CustomAttributes)
            {
                yield return attribute;
            }
        }