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
- XmlSchemaExporter.cs
- OleDbWrapper.cs
- WebConfigurationHost.cs
- EventLogInformation.cs
- TypefaceMetricsCache.cs
- UnSafeCharBuffer.cs
- TableCellCollection.cs
- FullTextState.cs
- QueryOutputWriterV1.cs
- StyleSheetRefUrlEditor.cs
- ValueTypeFieldReference.cs
- SiteMapDataSource.cs
- DateTimePicker.cs
- RelOps.cs
- FixedDocumentSequencePaginator.cs
- DataSysAttribute.cs
- RestHandlerFactory.cs
- ManagedWndProcTracker.cs
- TextSpanModifier.cs
- AdapterDictionary.cs
- OleDbWrapper.cs
- SynchronousReceiveElement.cs
- GeometryCombineModeValidation.cs
- typedescriptorpermissionattribute.cs
- TypedRowHandler.cs
- WebPartEditorCancelVerb.cs
- XmlWrappingWriter.cs
- PrintDialog.cs
- HttpCookiesSection.cs
- ListViewPagedDataSource.cs
- SchemaImporterExtensionElementCollection.cs
- OutputCacheSection.cs
- MailMessage.cs
- DrawingVisual.cs
- ChildTable.cs
- IconHelper.cs
- TypeForwardedToAttribute.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- ConstraintConverter.cs
- MaskedTextBox.cs
- CheckBoxBaseAdapter.cs
- EndpointAddress.cs
- DetailsViewDeletedEventArgs.cs
- PseudoWebRequest.cs
- ComEventsSink.cs
- DataObject.cs
- SqlFlattener.cs
- TdsParser.cs
- ResponseStream.cs
- DesignerWidgets.cs
- ResourceIDHelper.cs
- OleServicesContext.cs
- WebPartMovingEventArgs.cs
- DebugViewWriter.cs
- CodeGotoStatement.cs
- StringCollectionEditor.cs
- SqlBinder.cs
- PixelShader.cs
- GeometryModel3D.cs
- SafeBitVector32.cs
- HijriCalendar.cs
- AuthenticationManager.cs
- RequestCacheManager.cs
- TemplateComponentConnector.cs
- VisualStyleInformation.cs
- Mapping.cs
- TypeViewSchema.cs
- DataGridTextBoxColumn.cs
- IProvider.cs
- InlineCategoriesDocument.cs
- MouseGestureConverter.cs
- _Connection.cs
- ContextProperty.cs
- PeerApplication.cs
- MonikerBuilder.cs
- Rfc2898DeriveBytes.cs
- CommonGetThemePartSize.cs
- Popup.cs
- TimeSpanFormat.cs
- HttpListenerPrefixCollection.cs
- UndoManager.cs
- JsonFormatWriterGenerator.cs
- WeakEventManager.cs
- Int64Storage.cs
- SingleObjectCollection.cs
- DataFormats.cs
- ADConnectionHelper.cs
- DispatcherSynchronizationContext.cs
- DrawingState.cs
- NamedObjectList.cs
- ContentOperations.cs
- DiagnosticsConfiguration.cs
- ValueConversionAttribute.cs
- Predicate.cs
- GenericUriParser.cs
- COM2IPerPropertyBrowsingHandler.cs
- TrustManager.cs
- SqlUtil.cs
- WebPartZoneCollection.cs
- Visual3D.cs