private void GenerateMethodProperties(MethodEmitter methodEmitter, List <EmittedProperty> emittedProperties, ResolvedSerializationMethods serializationMethods)
 {
     foreach (var property in emittedProperties)
     {
         // We've already validated these
         if (property.PropertyModel.HeaderAttribute != null)
         {
             methodEmitter.EmitAddHeaderProperty(property);
         }
         else if (property.PropertyModel.PathAttribute != null)
         {
             methodEmitter.EmitAddPathProperty(
                 property,
                 serializationMethods.ResolvePath(property.PropertyModel.PathAttribute.Attribute.SerializationMethod));
         }
         else if (property.PropertyModel.QueryAttribute != null)
         {
             methodEmitter.EmitAddQueryProperty(
                 property,
                 serializationMethods.ResolveQuery(property.PropertyModel.QueryAttribute.Attribute.SerializationMethod));
         }
         else if (property.PropertyModel.HttpRequestMessagePropertyAttribute != null)
         {
             methodEmitter.EmitAddHttpRequestMessagePropertyProperty(property);
         }
     }
 }