Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- Parsers.cs
- DnsEndpointIdentity.cs
- Int32KeyFrameCollection.cs
- TypeSystem.cs
- MatrixStack.cs
- Baml2006SchemaContext.cs
- PEFileReader.cs
- Polygon.cs
- TakeQueryOptionExpression.cs
- ipaddressinformationcollection.cs
- FormattedText.cs
- Main.cs
- XmlSchemaComplexContent.cs
- ColorMap.cs
- WinEventTracker.cs
- RequestNavigateEventArgs.cs
- XmlNullResolver.cs
- SimpleWebHandlerParser.cs
- DirectoryNotFoundException.cs
- HasRunnableWorkflowEvent.cs
- SymmetricKey.cs
- SecurityTokenResolver.cs
- SystemColors.cs
- VScrollBar.cs
- PasswordPropertyTextAttribute.cs
- iisPickupDirectory.cs
- InspectionWorker.cs
- SQLByteStorage.cs
- WSSecureConversationFeb2005.cs
- adornercollection.cs
- MinimizableAttributeTypeConverter.cs
- UniqueIdentifierService.cs
- AssemblyHash.cs
- ForeignConstraint.cs
- BindingCompleteEventArgs.cs
- Underline.cs
- sqlmetadatafactory.cs
- SettingsPropertyValueCollection.cs
- MailMessage.cs
- Canvas.cs
- SystemIcmpV6Statistics.cs
- OutputCache.cs
- HashSet.cs
- SimpleTextLine.cs
- ScrollItemPatternIdentifiers.cs
- DeferredReference.cs
- ProfileSection.cs
- Dynamic.cs
- XmlSchemaComplexContent.cs
- hresults.cs
- DetailsViewPagerRow.cs
- RequestSecurityTokenResponse.cs
- Application.cs
- _SecureChannel.cs
- D3DImage.cs
- Action.cs
- KeyboardEventArgs.cs
- SearchForVirtualItemEventArgs.cs
- HtmlInputRadioButton.cs
- ComponentChangedEvent.cs
- SplitterEvent.cs
- DocumentAutomationPeer.cs
- HuffCodec.cs
- Preprocessor.cs
- StringSource.cs
- CallbackTimeoutsBehavior.cs
- RotationValidation.cs
- ThrowOnMultipleAssignment.cs
- ThreadAttributes.cs
- FrameworkRichTextComposition.cs
- AnnotationStore.cs
- PrimitiveType.cs
- CompilationLock.cs
- XmlSerializerImportOptions.cs
- StylusCaptureWithinProperty.cs
- SmtpDigestAuthenticationModule.cs
- DesignerDataRelationship.cs
- DataGridViewMethods.cs
- PreparingEnlistment.cs
- ScrollEvent.cs
- BuildProvidersCompiler.cs
- localization.cs
- SecurityElement.cs
- WorkflowServiceHostFactory.cs
- StylusShape.cs
- WebRequestModuleElement.cs
- SystemIPInterfaceProperties.cs
- GlobalProxySelection.cs
- XmlSchemaAnnotated.cs
- NamespaceDecl.cs
- _SslState.cs
- WsdlBuildProvider.cs
- StatusBarPanelClickEvent.cs
- MruCache.cs
- CalculatedColumn.cs
- Compiler.cs
- DockingAttribute.cs
- CodeEventReferenceExpression.cs
- localization.cs
- TextLine.cs