Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media3D / Vector3dCollection.cs / 1 / Vector3dCollection.cs
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
//
// Description: Vector3D collection partial class.
//
// See spec at [....]/medialayer/Specifications/Avalon3D%20API%20Spec.mht
//
// History:
// 11/03/05 : [....] - Created
//
//---------------------------------------------------------------------------
using System.Windows;
using System.Windows.Media.Media3D;
using MS.Internal.PresentationCore;
using System;
using System.IO;
using MS.Internal.Media;
namespace System.Windows.Media.Media3D
{
public partial class Vector3DCollection
{
///
/// Deserialize this object from BAML binary format.
///
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal static object DeserializeFrom(BinaryReader reader)
{
// Get the size.
uint count = reader.ReadUInt32() ;
Vector3DCollection collection = new Vector3DCollection( (int) count) ;
for ( uint i = 0; i < count ; i ++ )
{
Vector3D point = new Vector3D(
XamlSerializationHelper.ReadDouble( reader ),
XamlSerializationHelper.ReadDouble( reader ) ,
XamlSerializationHelper.ReadDouble( reader ) ) ;
collection.Add( point );
}
return collection ;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EntityContainer.cs
- SchemaSetCompiler.cs
- DataBoundLiteralControl.cs
- ThemeableAttribute.cs
- FontWeight.cs
- PortCache.cs
- MultiSelector.cs
- StatusBarItem.cs
- ErrorHandler.cs
- ConfigDefinitionUpdates.cs
- DelegateTypeInfo.cs
- ContextMenuStripActionList.cs
- ClosableStream.cs
- BindingMAnagerBase.cs
- Boolean.cs
- ProjectedWrapper.cs
- HttpCacheVary.cs
- Aggregates.cs
- LongMinMaxAggregationOperator.cs
- WindowsIdentity.cs
- BitmapData.cs
- XPathSelfQuery.cs
- PasswordPropertyTextAttribute.cs
- httpserverutility.cs
- MsmqChannelListenerBase.cs
- ElementMarkupObject.cs
- LayoutManager.cs
- PageContent.cs
- HttpPostLocalhostServerProtocol.cs
- SslStream.cs
- AttributeConverter.cs
- HttpListenerRequest.cs
- PermissionSetEnumerator.cs
- HttpListener.cs
- TdsParserSessionPool.cs
- FixedSOMFixedBlock.cs
- XmlWrappingReader.cs
- DataServiceQueryOfT.cs
- SystemException.cs
- HtmlInputButton.cs
- FixedFindEngine.cs
- SafeRightsManagementHandle.cs
- ServiceElementCollection.cs
- EventListenerClientSide.cs
- InfoCardBaseException.cs
- ExpressionBuilder.cs
- CommandLibraryHelper.cs
- RuleProcessor.cs
- TimelineClockCollection.cs
- WorkflowCommandExtensionItem.cs
- AxHost.cs
- CodeChecksumPragma.cs
- SHA1.cs
- ReturnEventArgs.cs
- PersonalizationEntry.cs
- StreamHelper.cs
- CodeExpressionCollection.cs
- GridViewDeleteEventArgs.cs
- SoapTypeAttribute.cs
- FlowDocumentReaderAutomationPeer.cs
- XmlKeywords.cs
- TreeNodeEventArgs.cs
- GridViewRowPresenter.cs
- ClientApiGenerator.cs
- HyperlinkAutomationPeer.cs
- DoubleLinkListEnumerator.cs
- ClassGenerator.cs
- SrgsText.cs
- SqlErrorCollection.cs
- FileVersion.cs
- ColumnResizeAdorner.cs
- InputScopeConverter.cs
- LinqDataSourceView.cs
- VectorConverter.cs
- WorkflowInstanceContextProvider.cs
- shaperfactoryquerycachekey.cs
- SocketElement.cs
- FixedBufferAttribute.cs
- FormDesigner.cs
- WindowPattern.cs
- DiscoveryDocumentSerializer.cs
- BamlRecordReader.cs
- SqlDataSourceSelectingEventArgs.cs
- TimestampInformation.cs
- MobileTextWriter.cs
- PageStatePersister.cs
- SplashScreen.cs
- DoWorkEventArgs.cs
- InfoCardArgumentException.cs
- PackageDigitalSignatureManager.cs
- SchemaTypeEmitter.cs
- BitmapDownload.cs
- DropShadowEffect.cs
- StorageEntityContainerMapping.cs
- LocationReferenceValue.cs
- Baml2006KnownTypes.cs
- Size.cs
- AssociationSet.cs
- codemethodreferenceexpression.cs
- OleDbErrorCollection.cs