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
- StrongNameIdentityPermission.cs
- DataTemplate.cs
- MaskDescriptor.cs
- RequiredFieldValidator.cs
- PermissionSetEnumerator.cs
- PolyLineSegment.cs
- FreezableDefaultValueFactory.cs
- AspCompat.cs
- ImportContext.cs
- ValidationService.cs
- Assembly.cs
- RectValueSerializer.cs
- ClonableStack.cs
- Ref.cs
- AstTree.cs
- Wildcard.cs
- WindowsProgressbar.cs
- CollectionMarkupSerializer.cs
- Help.cs
- TemplateControlParser.cs
- Expression.cs
- SubpageParagraph.cs
- SafeFileMappingHandle.cs
- BindableTemplateBuilder.cs
- JsonXmlDataContract.cs
- RectangleGeometry.cs
- ImpersonationContext.cs
- SqlTriggerAttribute.cs
- EventHandlersStore.cs
- CqlParser.cs
- DataControlLinkButton.cs
- GraphicsContainer.cs
- Soap.cs
- ObjectSecurity.cs
- RightsManagementResourceHelper.cs
- ObjectComplexPropertyMapping.cs
- CapabilitiesRule.cs
- NTAccount.cs
- ContainerParaClient.cs
- DataBoundControl.cs
- OleDbConnectionFactory.cs
- TextMarkerSource.cs
- Region.cs
- ToolBarButtonDesigner.cs
- RenderOptions.cs
- SaveFileDialog.cs
- SessionPageStateSection.cs
- DBCommand.cs
- NullableDoubleSumAggregationOperator.cs
- SafeNativeMethodsMilCoreApi.cs
- DocumentViewerBase.cs
- ArgumentException.cs
- TextParaClient.cs
- CompressEmulationStream.cs
- ExpressionNormalizer.cs
- FigureHelper.cs
- FloaterParagraph.cs
- MatrixAnimationUsingKeyFrames.cs
- MobileListItemCollection.cs
- Metafile.cs
- UserControlBuildProvider.cs
- Environment.cs
- SqlDataSourceView.cs
- SqlOuterApplyReducer.cs
- CodeCompiler.cs
- DataGridViewCellLinkedList.cs
- OdbcConnectionOpen.cs
- RegexInterpreter.cs
- GlyphRunDrawing.cs
- UnsignedPublishLicense.cs
- Cursor.cs
- OleDbConnection.cs
- Privilege.cs
- FormClosedEvent.cs
- MatrixStack.cs
- Geometry3D.cs
- _Connection.cs
- HyperLinkDesigner.cs
- DefaultSection.cs
- ListViewItem.cs
- Freezable.cs
- EventTrigger.cs
- MLangCodePageEncoding.cs
- ListDataHelper.cs
- ApplicationGesture.cs
- ZeroOpNode.cs
- HtmlImage.cs
- SafeHGlobalHandleCritical.cs
- XmlDataSourceNodeDescriptor.cs
- EarlyBoundInfo.cs
- RadialGradientBrush.cs
- HwndMouseInputProvider.cs
- XPathExpr.cs
- _SafeNetHandles.cs
- DataMember.cs
- LookupNode.cs
- XmlStreamNodeWriter.cs
- MaskInputRejectedEventArgs.cs
- SQLString.cs
- FileDialogPermission.cs