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
- Journal.cs
- CapabilitiesSection.cs
- TimelineGroup.cs
- WebPartDisplayModeCancelEventArgs.cs
- basevalidator.cs
- Point4D.cs
- ExpressionList.cs
- TcpProcessProtocolHandler.cs
- CompositeActivityDesigner.cs
- Int16Converter.cs
- IncrementalHitTester.cs
- ThicknessConverter.cs
- HttpProcessUtility.cs
- TabPanel.cs
- ParagraphVisual.cs
- URLString.cs
- PartBasedPackageProperties.cs
- ListParaClient.cs
- Cursor.cs
- ToolStripDropDownMenu.cs
- ColorKeyFrameCollection.cs
- InvalidComObjectException.cs
- Span.cs
- SocketAddress.cs
- BStrWrapper.cs
- _ConnectStream.cs
- ProxyAttribute.cs
- XmlParser.cs
- MethodCallTranslator.cs
- contentDescriptor.cs
- TemplateControl.cs
- PathSegment.cs
- WebWorkflowRole.cs
- unsafenativemethodstextservices.cs
- BridgeDataRecord.cs
- ExpressionPrefixAttribute.cs
- StateItem.cs
- UnhandledExceptionEventArgs.cs
- HtmlButton.cs
- Accessible.cs
- DeflateStreamAsyncResult.cs
- CheckoutException.cs
- X509ChainElement.cs
- IPipelineRuntime.cs
- COM2ExtendedUITypeEditor.cs
- TreeNodeConverter.cs
- ComIntegrationManifestGenerator.cs
- ClientType.cs
- HttpClientCertificate.cs
- DataRowComparer.cs
- ImpersonationContext.cs
- CheckableControlBaseAdapter.cs
- ExpressionConverter.cs
- SecureStringHasher.cs
- DocumentViewerBase.cs
- EventProviderTraceListener.cs
- Soap.cs
- DataSetUtil.cs
- SplitterPanel.cs
- StructuredTypeEmitter.cs
- Publisher.cs
- TcpServerChannel.cs
- PreviewPrintController.cs
- remotingproxy.cs
- Button.cs
- ConditionalExpression.cs
- RectangleConverter.cs
- OutgoingWebResponseContext.cs
- NamespaceDisplayAutomationPeer.cs
- XPathDescendantIterator.cs
- WebPartCatalogAddVerb.cs
- DoWorkEventArgs.cs
- TabletCollection.cs
- DmlSqlGenerator.cs
- XmlSchemaInferenceException.cs
- CodeParameterDeclarationExpression.cs
- TextRangeEditLists.cs
- TableLayoutCellPaintEventArgs.cs
- HyperLinkStyle.cs
- DBSchemaRow.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- SQLMoney.cs
- SegmentInfo.cs
- TimelineClockCollection.cs
- DetailsViewInsertEventArgs.cs
- HtmlWindow.cs
- PeerInputChannel.cs
- StructuralCache.cs
- TextTreeRootNode.cs
- BasePattern.cs
- DeobfuscatingStream.cs
- DesignerTextWriter.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ClientSettingsProvider.cs
- Root.cs
- EditorPart.cs
- BinaryKeyIdentifierClause.cs
- XmlSchemaAnnotation.cs
- UInt16.cs
- SafeRightsManagementEnvironmentHandle.cs