// Separate method so we only pay for closure allocation if this code is executed: private static Stream WinRtToNetFxAdapterMap_GetValue(Object winRtStream, Int32 bufferSize) { return(s_winRtToNetFxAdapterMap.GetValue(winRtStream, (wrtStr) => new BufferedStream(WinRtToNetFxStreamAdapter.Create(wrtStr), bufferSize))); }
// Separate method so we only pay for closure allocation if this code is executed: private static Stream WinRtToNetFxAdapterMap_GetValue(Object winRtStream) { return(s_winRtToNetFxAdapterMap.GetValue(winRtStream, (wrtStr) => WinRtToNetFxStreamAdapter.Create(wrtStr))); }