1 override of ToArray
mscorlib (1)
system\io\unmanagedmemorystreamwrapper.cs (1)
112public unsafe override byte[] ToArray() {
82 references to ToArray
mscorlib (6)
system\appdomain.cs (2)
2839return ms.ToArray(); 2846return ms.ToArray();
system\reflection\emit\customattributebuilder.cs (1)
286m_blob = ((MemoryStream)writer.BaseStream).ToArray();
system\security\policy\applicationtrust.cs (1)
300byte[] array = stream.ToArray();
system\security\policy\evidence.cs (1)
1044return serializationStream.ToArray();
system\security\securityexception.cs (1)
140byte[] array = stream.ToArray();
PresentationBuildTasks (7)
BuildTasks\Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (1)
703TaskFileService.WriteFile(memStream.ToArray(), _internalTypeHelperFile);
BuildTasks\MS\Internal\Localization\LocalizationParserHooks.cs (1)
143_compiler.TaskFileService.WriteFile(memStream.ToArray(), absoluteOutputPath);
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (3)
673TaskFileService.WriteGeneratedCodeFile(codeMemStream.ToArray(), 2884TaskFileService.WriteGeneratedCodeFile(codeMemStream.ToArray(), 3189TaskFileService.WriteGeneratedCodeFile(codeMemStream.ToArray(),
BuildTasks\MS\Internal\Tasks\CompilerLocalReference.cs (1)
234_taskFileService.WriteFile(memStream.ToArray(), _localCacheFile);
BuildTasks\MS\Internal\Tasks\CompilerState.cs (1)
146_taskFileService.WriteFile(memStream.ToArray(), _stateFilePath);
PresentationCore (3)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (1)
785byte[] data = localStream.ToArray();
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (1)
664cbData += ExtendedPropertySerializer.EncodeAsISF(KnownIds.StylusTip, localStream.ToArray(), stream, guidList, 0, true);
Core\CSharp\System\Windows\Ink\StrokeCollectionConverter.cs (1)
149return Convert.ToBase64String(ms.ToArray());
PresentationFramework (2)
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (1)
663info.saveByteArray = saveStream.ToArray();
src\Framework\MS\Internal\DataStreams.cs (1)
173bytes = byteStream.ToArray();
System (3)
security\system\security\cryptography\x509\x509certificate2.cs (1)
272return keyBlob.ToArray();
sys\system\configuration\SettingsPropertyValue.cs (2)
228return ms.ToArray(); 256byte[] buffer = ms.ToArray();
System.Data (4)
fx\src\data\System\Data\Common\DbDataReader.cs (1)
179return new MemoryStream(bufferStream.ToArray(), false);
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256Algorithm.cs (1)
358plainText = msDecrypt.ToArray();
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
2288retval = stm.ToArray();
fx\src\data\System\Data\SqlClient\SqlParameter.cs (1)
1029CoercedValue = ms.ToArray();
System.Data.Entity (3)
System\Data\Common\CommandTrees\DbCommandTree.cs (1)
178return XmlExpressionDumper.DefaultEncoding.GetString(stream.ToArray());
System\Data\Query\InternalTrees\Dump.cs (2)
87return DefaultEncoding.GetString(stream.ToArray()); 103return DefaultEncoding.GetString(stream.ToArray());
System.Data.Linq (2)
DbConvert.cs (2)
46streamArray = stream.ToArray(); 63returnValue = stream.ToArray();
System.Data.SqlXml (1)
System\Xml\Xsl\Runtime\XmlQueryStaticData.cs (1)
280data = dataStream.ToArray();
System.Drawing (4)
commonui\System\Drawing\Icon.cs (1)
1151si.AddValue("IconData", stream.ToArray(), typeof(byte[]));
commonui\System\Drawing\IconConverter.cs (1)
129return ms.ToArray();
commonui\System\Drawing\Image.cs (1)
519si.AddValue("Data", stream.ToArray(), typeof(byte[]));
commonui\System\Drawing\ImageConverter.cs (1)
162return ms.ToArray();
System.IdentityModel (11)
System\IdentityModel\CanonicalizationDriver.cs (1)
68return GetMemoryStream().ToArray();
System\IdentityModel\DeflateCookieTransform.cs (2)
76return decompressedStream.ToArray(); 107byte[] encoded = compressedStream.ToArray();
System\IdentityModel\RsaEncryptionCookieTransform.cs (1)
328return ms.ToArray();
System\IdentityModel\SignedXml.cs (1)
587byte[] buffer = stream.ToArray();
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (1)
1274return Encoding.UTF8.GetString(ms.ToArray());
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (1)
652return Encoding.UTF8.GetString(ms.ToArray());
System\IdentityModel\Tokens\SessionSecurityToken.cs (2)
778info.AddValue(tokenKey, stream.ToArray()); 1366byte[] bootstrapArray = ms.ToArray();
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (2)
724return ms.ToArray(); 811cookie = ms.ToArray();
System.Runtime.Remoting (1)
channels\core\corechannel.cs (1)
667byte[] byteArray = inStm.ToArray();
System.Security (2)
system\security\cryptography\xml\encryptedxml.cs (1)
257cipherValue = ms.ToArray();
system\security\cryptography\xml\SignedXmlDebugLog.cs (1)
566Encoding.UTF8.GetString(ms.ToArray()));
System.ServiceModel (6)
System\ServiceModel\Activation\ListenerChannelContext.cs (1)
51return memoryStream.ToArray();
System\ServiceModel\Channels\MsmqDecodeHelper.cs (1)
431return (bodyStream as MemoryStream).ToArray();
System\ServiceModel\MsmqIntegration\ActiveXSerializer.cs (3)
63bytes = stream.ToArray(); 82bytes = stream.ToArray(); 100bytes = stream.ToArray();
System\ServiceModel\Security\Tokens\SecurityContextCookieSerializer.cs (1)
212byte[] serializedContext = stream.ToArray();
System.Transactions (1)
System\Transactions\TransactionManager.cs (1)
521returnValue = stream.ToArray();
System.Web (10)
Configuration\MachineKeySection.cs (1)
579byte[] paddedData = ms.ToArray();
Configuration\RemoteWebConfigurationHostStream.cs (1)
208remoteSrv.WriteData(_FileName, _TemplateFileName, _MemoryStream.ToArray(), ref _ReadTime);
Profile\ProfileModule.cs (1)
266buf = ms.ToArray();
Security\Cryptography\NetFXCryptoService.cs (2)
103byte[] protectedData = memStream.ToArray(); 175byte[] clearData = memStream.ToArray();
Security\Cryptography\Purpose.cs (1)
157_derivedKeyContext = stream.ToArray();
Security\FormsAuthenticationTicketSerializer.cs (1)
221return ticketBlobStream.ToArray();
Security\RolePrincipal.cs (1)
263buf = ms.ToArray();
UI\ObjectStateFormatter.cs (1)
786byte[] protectedData = cryptoService.Protect(ms.ToArray());
UI\WebParts\BlobPersonalizationState.cs (1)
1096serializedData = ms.ToArray();
System.Web.DataVisualization (3)
Common\Utilities\XmlSerializer.cs (2)
678 byte[] imageByteData = imageStream.ToArray(); 2768 writer.Write(imageStream.ToArray());
WebForm\General\ChartHttpHandler.cs (1)
476handler.Save(key, stream.ToArray());
System.Web.Extensions (2)
Compilation\WCFModel\MetadataFile.cs (1)
545m_BinaryContent = memStream.ToArray();
Handlers\ScriptResourceHandler.cs (1)
523byte[] zippedBytes = zipped.ToArray();
System.Windows.Forms (6)
winforms\Managed\System\Resources\ResXDataNode.cs (1)
424string text = ToBase64WrappedString(ms.ToArray());
winforms\Managed\System\WinForms\AxHost.cs (3)
6544return ms.ToArray(); 6853si.AddValue("Data", stream.ToArray()); 6859si.AddValue("PropertyBagBinary", stream.ToArray());
winforms\Managed\System\WinForms\CursorConverter.cs (1)
140return ms.ToArray();
winforms\Managed\System\WinForms\ImageListStreamer.cs (1)
226si.AddValue("Data", Compress(stream.ToArray()));
System.Windows.Forms.DataVisualization (2)
Common\Utilities\XmlSerializer.cs (2)
678 byte[] imageByteData = imageStream.ToArray(); 2768 writer.Write(imageStream.ToArray());
System.WorkflowServices (3)
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (2)
496byte[] bytes = memStr.ToArray(); 523string xml = UnicodeEncoding.UTF8.GetString(memStr.ToArray());
System\ServiceModel\Security\SerializableAuthorizationContext.cs (1)
134return stream.ToArray();