Show / Hide Table of Contents

Class ControllerHelpers

Extension methods primarily used to convert objects to JSON DTOs.

Inheritance
object
ControllerHelpers
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: AdaptiveImages.Controllers
Assembly: AdaptiveImages.dll
Syntax
public static class ControllerHelpers

Methods

ToResponseDto(IImageProviderAsset)

Creates an object suitable for JSON serialization when serving image meta data through a controller.

Declaration
public static dynamic ToResponseDto(this IImageProviderAsset metadata)
Parameters
Type Name Description
IImageProviderAsset metadata

Metadata for a SingleImage.

Returns
Type Description
dynamic

Dynamic object representing a IImageProviderAsset instance.

☀
☾
In this article
Back to top
Documentation applies to: Adaptive Images 2.x
☀
☾