void ThrowIfUnknown () { if (type == null || type.UnderlyingType == null) throw new NotSupportedException (String.Format ("Current operation is valid only when the underlying type on a XamlType is known, but it is unknown for '{0}'", type)); }