@@ -135,18 +135,6 @@ public IBsonSerializer<TField> ValueSerializer
135135 /// <typeparam name="TDocument">The type of the document.</typeparam>
136136 public abstract class FieldDefinition < TDocument >
137137 {
138- /// <summary>
139- /// Renders the field to a <see cref="RenderedFieldDefinition"/>.
140- /// </summary>
141- /// <param name="documentSerializer">The document serializer.</param>
142- /// <param name="serializerRegistry">The serializer registry.</param>
143- /// <returns>A <see cref="RenderedFieldDefinition"/>.</returns>
144- [ Obsolete ( "Use Render(RenderArgs<TDocument> args) overload instead." ) ]
145- public virtual RenderedFieldDefinition Render ( IBsonSerializer < TDocument > documentSerializer , IBsonSerializerRegistry serializerRegistry )
146- {
147- return Render ( new ( documentSerializer , serializerRegistry ) ) ;
148- }
149-
150138 /// <summary>
151139 /// Renders the field to a <see cref="RenderedFieldDefinition"/>.
152140 /// </summary>
@@ -179,34 +167,6 @@ public static implicit operator FieldDefinition<TDocument>(string fieldName)
179167 /// <typeparam name="TField">The type of the field.</typeparam>
180168 public abstract class FieldDefinition < TDocument , TField >
181169 {
182- /// <summary>
183- /// Renders the field to a <see cref="RenderedFieldDefinition{TField}"/>.
184- /// </summary>
185- /// <param name="documentSerializer">The document serializer.</param>
186- /// <param name="serializerRegistry">The serializer registry.</param>
187- /// <param name="allowScalarValueForArrayField">Whether a scalar value is allowed for an array field.</param>
188- /// <returns>A <see cref="RenderedFieldDefinition{TField}"/>.</returns>
189- [ Obsolete ( "Use Render(RenderArgs<TDocument> args) overload instead." ) ]
190- public virtual RenderedFieldDefinition < TField > Render (
191- IBsonSerializer < TDocument > documentSerializer ,
192- IBsonSerializerRegistry serializerRegistry ,
193- bool allowScalarValueForArrayField )
194- {
195- return Render ( new ( documentSerializer , serializerRegistry ) ) ; // ignore allowScalarValueForArrayField if not overridden by subclass
196- }
197-
198- /// <summary>
199- /// Renders the field to a <see cref="RenderedFieldDefinition{TField}"/>.
200- /// </summary>
201- /// <param name="documentSerializer">The document serializer.</param>
202- /// <param name="serializerRegistry">The serializer registry.</param>
203- /// <returns>A <see cref="RenderedFieldDefinition{TField}"/>.</returns>
204- [ Obsolete ( "Use Render(RenderArgs<TDocument> args) overload instead." ) ]
205- public virtual RenderedFieldDefinition < TField > Render ( IBsonSerializer < TDocument > documentSerializer , IBsonSerializerRegistry serializerRegistry )
206- {
207- return Render ( new ( documentSerializer , serializerRegistry ) ) ;
208- }
209-
210170 /// <summary>
211171 /// Renders the field to a <see cref="RenderedFieldDefinition{TField}"/>.
212172 /// </summary>
0 commit comments