public void inform(ResourceLoader loader) {if (encoderClass.equals("float")){encoder = new FloatEncoder();} else if (encoderClass.equals("integer")){encoder = new IntegerEncoder();} else if (encoderClass.equals("identity")){encoder = new IdentityEncoder();} else {encoder = loader.newInstance(encoderClass, PayloadEncoder.class);}}
public virtual void Inform(IResourceLoader loader){if (encoderClass.Equals("float", StringComparison.Ordinal)){encoder = new SingleEncoder();}else if (encoderClass.Equals("integer", StringComparison.Ordinal)){encoder = new IntegerEncoder();}else if (encoderClass.Equals("identity", StringComparison.Ordinal)){encoder = new IdentityEncoder();}else{encoder = loader.NewInstance<IPayloadEncoder>(encoderClass );}}