public ConstructorInfo SelectConstructor(IBuilderContext context, Type type, string id) { if(type != null) { ConstructorInfo[] constructors = type.GetConstructors(); if (constructors.Length > 0) return constructors[0]; } return null; }