Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/01/09 15:10:14 (16 years ago)
Author:
epitzer
Message:

Decomposers for all primitive types except string. (#563)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/Default/ViewOnly/ViewOnlyFormat.cs

    r1454 r1476  
    4545    public override Type Type { get { return typeof(Type); } }
    4646  }
    47 
    48   //public class ToStringDecomposer : IDecomposer {
    49   // should not be used by default
    50   public class ToStringDecomposer {
    51     public bool CanDecompose(Type type) { return true; }
    52     public IEnumerable<Tag> DeCompose(object obj) {
    53       yield return new Tag(obj.ToString());
    54     }
    55 
    56     public object CreateInstance(Type type) {
    57       throw new NotImplementedException();
    58     }
    59 
    60     public object Populate(object instance, IEnumerable<Tag> tags, Type type) {
    61       throw new NotImplementedException();
    62     }
    63 
    64   }
    65 
    6647
    6748  public class ViewOnlyGenerator : Generator<string> {
Note: See TracChangeset for help on using the changeset viewer.