private CSharpProperty GenerateEndpointWithoutChildren(string key, IEndpoint endpoint, TypeList typeList) { var builder = _builders[endpoint.GetType()]; return(new CSharpProperty(builder.GetInterface(endpoint, typeList), _naming.Property(key)) { GetterExpression = builder.GetConstruction(endpoint, typeList), Description = endpoint.Description }); }