There is mistake in sample code in documentation. We are very sorry for this inconvenience. Basically you only need to change following line in example:
if (this.Type.TrimStart('.').ToLower() == "flv")
to:
if ((this.Type != null) && (this.Type.TrimStart('.').ToLower() == "flv"))
Sitemap |
Copyright 2008 Kentico software | Powered by Kentico