Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/16/09 12:58:14 (16 years ago)
Author:
epitzer
Message:

Format white space. (Ctrl-K, Ctrl-D) (#548)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Core/StorableAttribute.cs

    r1555 r1566  
    77  [AttributeUsage(
    88    AttributeTargets.Field | AttributeTargets.Property,
    9     AllowMultiple=false,
    10     Inherited=false)]
     9    AllowMultiple = false,
     10    Inherited = false)]
    1111  public class StorableAttribute : Attribute {
    1212
     
    1919      BindingFlags.NonPublic |
    2020      BindingFlags.DeclaredOnly;
    21    
     21
    2222    public static IEnumerable<KeyValuePair<StorableAttribute, MemberInfo>> GetStorableMembers(Type type) {
    23       return GetStorableMembers(type, true);     
     23      return GetStorableMembers(type, true);
    2424    }
    2525
     
    2727        GetStorableMembers(Type type, bool inherited) {
    2828      if (type.BaseType != null)
    29         foreach ( var pair in GetStorableMembers(type.BaseType) )
     29        foreach (var pair in GetStorableMembers(type.BaseType))
    3030          yield return pair;
    3131      foreach (MemberInfo memberInfo in type.GetMembers(instanceMembers)) {
    32         foreach (object attribute in memberInfo.GetCustomAttributes(false)) {         
     32        foreach (object attribute in memberInfo.GetCustomAttributes(false)) {
    3333          StorableAttribute storableAttribute =
    3434            attribute as StorableAttribute;
    3535          if (storableAttribute != null) {
    36             yield return new KeyValuePair<StorableAttribute, MemberInfo>(storableAttribute, memberInfo);           
     36            yield return new KeyValuePair<StorableAttribute, MemberInfo>(storableAttribute, memberInfo);
    3737          }
    3838        }
    39       }     
     39      }
    4040    }
    4141
     
    4646        storableAccessors.Add(pair.Value.Name,
    4747          new DataMemberAccessor(pair.Value, pair.Key, obj));
    48       }           
     48      }
    4949      return storableAccessors;
    50     }   
     50    }
    5151  }
    5252}
Note: See TracChangeset for help on using the changeset viewer.