public static float? GetFixedHeightAttribute(this MemberInfo info) { var fixedHeight = info.GetCustomAttributes(true).OfType<FixedHeightAttribute>().FirstOrDefault(); if (fixedHeight == null) return null; return fixedHeight.FixedHeight; }