Aardvark.Base.Coder.Converter.Register(string, string, System.Action, bool)

Here are the examples of the csharp api class Aardvark.Base.Coder.Converter.Register(string, string, System.Action, bool) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: aardvark.base
Source File: Converter.cs
public void Register(
            string sourceDescriptor, string targetDescriptor,
            Action<Convertible, Convertible> procedure)
        {
            if (string.IsNullOrEmpty(sourceDescriptor) ||
                string.IsNullOrEmpty(targetDescriptor) ||
                procedure == null) throw new ArgumentNullException();
            Register(sourceDescriptor, targetDescriptor, procedure, false);
        }

2. Example

Project: aardvark.base
Source File: Converter.cs
public void Register(
            string sourceDescriptor, string targetDescriptor,
            Action<Convertible, Convertible> procedure,
            IEnumerable<Annotation> annotations)
        {
            if (string.IsNullOrEmpty(sourceDescriptor) ||
                string.IsNullOrEmpty(targetDescriptor) ||
                procedure == null) throw new ArgumentNullException();
            Register(sourceDescriptor, targetDescriptor, procedure, false);
            Register(sourceDescriptor, targetDescriptor, annotations);
        }