public DynamicTypeDescriptorBuilder ImplementsInterface(Type interfaceType) { if (!interfaceType.IsInterface) { throw new InvalidOperationException($"Type {interfaceType.Name} is not an interface"); } dynamicTypeDescriptor.AddInterface(interfaceType); return(this); }