private static IEnumerable <SerializationInfo> ResolveExplicitMembers(Type t) { var members = t.GetMembers(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); foreach (var m in members) { var tm = ReflectionUtil.GetCustomAttribute <TomlMember>(m); if (tm != null) { var key = string.IsNullOrWhiteSpace(tm.Key) ? new TomlKey(m.Name, TomlKey.KeyType.Bare) : new TomlKey(tm.Key); yield return(SerializationInfo.CreateFromMemberInfo(m, key)); } } }