Aardvark.Base.Coder.FieldCoderExtensions.CreateFieldCoder(System.Type, string, string)

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

2 Examples 7

1. Example

View license
public static FieldCoder CreateFieldCoder(this IFieldCodeable self, string name, string memberName)
        {
            return CreateFieldCoder(self.GetType(), name, memberName);
        }

2. Example

View license
public static IEnumerable<FieldCoder> CreateFieldCoders(this Type type, params string[] members)
        {
            foreach (var member in members)
            {
                var tokens = member.Split(new[] { '|' });
                if (tokens.Length == 1) yield return CreateFieldCoder(type, member, member);
                else if (tokens.Length == 2) yield return CreateFieldCoder(type, tokens[0], tokens[1]);
                else throw new ArgumentException();
            }
        }