/// <summary> /// Constructor for the <c>AnnotationStrategy</c> object. /// This creates a strategy that intercepts serialization on any /// annotated method or field. If no annotation exists then this /// will delegate to the <c>Strategy</c> provided. /// </summary> /// <param name="strategy"> /// the internal strategy to delegate to /// </param> public AnnotationStrategy(Strategy strategy) { this.scanner = new ConverterScanner(); this.strategy = strategy; }
/// <summary> /// Constructor for the <c>AnnotationStrategy</c> object. /// This creates a strategy that intercepts serialization on any /// annotated method or field. If no annotation exists then this /// will delegate to the <c>Strategy</c> provided. /// </summary> /// <param name="strategy"> /// the internal strategy to delegate to /// </param> public AnnotationStrategy(Strategy strategy) { this.scanner = new ConverterScanner(); this.strategy = strategy; }