Skip to content

Instantly share code, notes, and snippets.

@casper-rasmussen
Last active September 7, 2016 14:50
Show Gist options
  • Save casper-rasmussen/1842d51dc86708f7fc555f4fdd07ba93 to your computer and use it in GitHub Desktop.
Save casper-rasmussen/1842d51dc86708f7fc555f4fdd07ba93 to your computer and use it in GitHub Desktop.
[ContentType(
DisplayName = "Fixed Image",
GUID = "[YOUR GUID HERE]")]
public class FixedImageFileMediaType : ImagePlaceholderMediaType
{
[Ignore]
public override int Height { get { return 400; } set { throw new NotSupportedException(); } }
[Ignore]
public override int Width { get { return 400; } set { throw new NotSupportedException(); } }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment