Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / System / Windows / Media3D / Vector3dCollection.cs / 1 / Vector3dCollection.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Vector3D collection partial class. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 11/03/05 : marka - 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. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Vector3D collection partial class. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 11/03/05 : marka - 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
- QilTargetType.cs
- OdbcRowUpdatingEvent.cs
- XmlStringTable.cs
- CurrencyWrapper.cs
- DataGridBoolColumn.cs
- ShaperBuffers.cs
- ListViewDeleteEventArgs.cs
- SiteMapDataSource.cs
- xsdvalidator.cs
- Group.cs
- LineInfo.cs
- MemoryMappedFile.cs
- TextServicesContext.cs
- RectIndependentAnimationStorage.cs
- IndexOutOfRangeException.cs
- Win32SafeHandles.cs
- ObjectListCommand.cs
- FlowLayout.cs
- RotateTransform.cs
- XmlSchemaRedefine.cs
- FrameworkEventSource.cs
- Single.cs
- ListViewGroupItemCollection.cs
- NavigateEvent.cs
- RelativeSource.cs
- EntityViewContainer.cs
- TransactionOptions.cs
- ConsumerConnectionPointCollection.cs
- ExternalException.cs
- DesignerDataSourceView.cs
- RunInstallerAttribute.cs
- DesignerAttribute.cs
- GroupItemAutomationPeer.cs
- ITextView.cs
- EntityClassGenerator.cs
- StatusBarItemAutomationPeer.cs
- VectorAnimationBase.cs
- PagerSettings.cs
- BindableAttribute.cs
- ArrayConverter.cs
- QuotedStringWriteStateInfo.cs
- QilReplaceVisitor.cs
- ActivityTypeCodeDomSerializer.cs
- PictureBox.cs
- OracleEncoding.cs
- SurrogateDataContract.cs
- WebControl.cs
- PublisherMembershipCondition.cs
- CodeDirectiveCollection.cs
- BezierSegment.cs
- XmlSchemaGroup.cs
- ControlCommandSet.cs
- ExecutionEngineException.cs
- CategoryValueConverter.cs
- NodeCounter.cs
- sqlmetadatafactory.cs
- ApplicationFileCodeDomTreeGenerator.cs
- TextRangeAdaptor.cs
- ApplicationFileParser.cs
- RequestTimeoutManager.cs
- HttpWrapper.cs
- XmlWellformedWriter.cs
- InkCanvasSelection.cs
- XPathNavigatorKeyComparer.cs
- SerializationEventsCache.cs
- SiteMapNodeCollection.cs
- DelimitedListTraceListener.cs
- HealthMonitoringSectionHelper.cs
- ListViewPagedDataSource.cs
- ActionFrame.cs
- ShutDownListener.cs
- MethodRental.cs
- LineUtil.cs
- PropertyCollection.cs
- MetadataLocation.cs
- FileController.cs
- DispatcherSynchronizationContext.cs
- ArrangedElementCollection.cs
- ExclusiveTcpTransportManager.cs
- DataStorage.cs
- KeyBinding.cs
- BidOverLoads.cs
- XmlSchemaChoice.cs
- SchemaManager.cs
- ToolStripRendererSwitcher.cs
- StylusPointDescription.cs
- WindowsListViewScroll.cs
- DecoratedNameAttribute.cs
- EndpointIdentityExtension.cs
- SecurityContext.cs
- RegistrationServices.cs
- ByteArrayHelperWithString.cs
- WeakHashtable.cs
- WebPartMenuStyle.cs
- DataGridAddNewRow.cs
- DrawToolTipEventArgs.cs
- SpellerHighlightLayer.cs
- ClipboardProcessor.cs
- MaterializeFromAtom.cs
- TableLayoutStyleCollection.cs