// We do not want to support the cloning-related operation for now. // They appear to mainly target corner-case scenarios in Windows itself, // and are (mainly) a historical artefact of abandoned early designs // for IRandonAccessStream. // Cloning can be added in future, however, it would be quite complex // to support it correctly for generic streams. private static void ThrowCloningNotSupported(string methodName) { NotSupportedException nse = new NotSupportedException(string.Format(global::Windows.Storage.Streams.SR.NotSupported_CloningNotSupported, methodName)); nse.SetHResult(E_NOTIMPL); throw nse; }