Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- EncoderParameter.cs
- ProfilePropertyMetadata.cs
- HotSpot.cs
- XmlCustomFormatter.cs
- SoundPlayerAction.cs
- BorderGapMaskConverter.cs
- DrawingDrawingContext.cs
- RegexNode.cs
- PagerSettings.cs
- FormDocumentDesigner.cs
- OleDbMetaDataFactory.cs
- PlatformNotSupportedException.cs
- WmlPanelAdapter.cs
- TabControlCancelEvent.cs
- SemaphoreFullException.cs
- HierarchicalDataBoundControl.cs
- OdbcPermission.cs
- WebPartCancelEventArgs.cs
- Sql8ConformanceChecker.cs
- HttpBrowserCapabilitiesWrapper.cs
- PointAnimationUsingPath.cs
- LexicalChunk.cs
- EncoderExceptionFallback.cs
- TransformerConfigurationWizardBase.cs
- AuthenticationService.cs
- MiniParameterInfo.cs
- DbProviderSpecificTypePropertyAttribute.cs
- SecurityTokenSerializer.cs
- Events.cs
- InputBinder.cs
- PageSetupDialog.cs
- BindingManagerDataErrorEventArgs.cs
- ParameterToken.cs
- OdbcCommand.cs
- CodeAttributeArgumentCollection.cs
- SafeUserTokenHandle.cs
- EntitySqlException.cs
- Exceptions.cs
- CompositeControl.cs
- WmlSelectionListAdapter.cs
- DependencyPropertyKey.cs
- WorkflowRuntimeService.cs
- XamlPointCollectionSerializer.cs
- SqlClientFactory.cs
- OleDbException.cs
- HtmlDocument.cs
- EventBookmark.cs
- CustomPopupPlacement.cs
- ControlIdConverter.cs
- ViewStateException.cs
- RunWorkerCompletedEventArgs.cs
- ParallelTimeline.cs
- ContextStaticAttribute.cs
- GlyphElement.cs
- Stroke.cs
- SqlServer2KCompatibilityAnnotation.cs
- ContainerAction.cs
- WebRequest.cs
- DiscoveryExceptionDictionary.cs
- UIPermission.cs
- OperationExecutionFault.cs
- TextServicesCompartmentContext.cs
- HtmlTextArea.cs
- LongPath.cs
- ReflectionPermission.cs
- ProcessModelInfo.cs
- ObjectPersistData.cs
- ThreadStartException.cs
- PresentationAppDomainManager.cs
- serverconfig.cs
- QueuePropertyVariants.cs
- AssemblyAssociatedContentFileAttribute.cs
- UserCancellationException.cs
- HtmlTableCell.cs
- DataGridColumn.cs
- SafeIUnknown.cs
- ItemTypeToolStripMenuItem.cs
- DataObjectCopyingEventArgs.cs
- IdentifierService.cs
- MonthCalendar.cs
- RawTextInputReport.cs
- BaseHashHelper.cs
- ListViewUpdatedEventArgs.cs
- ListQueryResults.cs
- EdmItemError.cs
- VirtualizingPanel.cs
- AssemblyFilter.cs
- IriParsingElement.cs
- EmptyEnumerable.cs
- MeshGeometry3D.cs
- _ChunkParse.cs
- EventSinkHelperWriter.cs
- DomainLiteralReader.cs
- columnmapfactory.cs
- DateTimeValueSerializerContext.cs
- TypeToken.cs
- WorkflowOwnershipException.cs
- TableStyle.cs
- IntranetCredentialPolicy.cs
- Application.cs