Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- EntityAdapter.cs
- PipelineDeploymentState.cs
- XmlComplianceUtil.cs
- EventProvider.cs
- SystemWebExtensionsSectionGroup.cs
- StdRegProviderWrapper.cs
- AppearanceEditorPart.cs
- ADRoleFactory.cs
- KeySplineConverter.cs
- GridViewRow.cs
- DialogResultConverter.cs
- XslTransform.cs
- TrayIconDesigner.cs
- DataPagerFieldCommandEventArgs.cs
- BuildProviderCollection.cs
- SystemTcpStatistics.cs
- xmlglyphRunInfo.cs
- ErrorReporting.cs
- TimelineGroup.cs
- WebBrowsableAttribute.cs
- PointConverter.cs
- TransformDescriptor.cs
- XsdBuildProvider.cs
- MergablePropertyAttribute.cs
- ListBoxChrome.cs
- ElementNotEnabledException.cs
- SHA1CryptoServiceProvider.cs
- ETagAttribute.cs
- MeasureItemEvent.cs
- IntSecurity.cs
- CodeSubDirectoriesCollection.cs
- TextSelection.cs
- OleDbError.cs
- TextProviderWrapper.cs
- MethodRental.cs
- ExtensibleClassFactory.cs
- ColumnTypeConverter.cs
- IsolatedStorageFilePermission.cs
- ColorMatrix.cs
- ListParaClient.cs
- ReaderOutput.cs
- Int16Storage.cs
- AspProxy.cs
- GZipStream.cs
- diagnosticsswitches.cs
- OdbcRowUpdatingEvent.cs
- compensatingcollection.cs
- RuleInfoComparer.cs
- oledbmetadatacollectionnames.cs
- TypeListConverter.cs
- SelectionWordBreaker.cs
- NetTcpSectionData.cs
- ReflectionUtil.cs
- Canonicalizers.cs
- UndirectedGraph.cs
- MouseButton.cs
- HttpApplication.cs
- ActivityExecutionFilter.cs
- tooltip.cs
- MinimizableAttributeTypeConverter.cs
- RequestStatusBarUpdateEventArgs.cs
- ObjectKeyFrameCollection.cs
- ProcessRequestArgs.cs
- RequestCachingSection.cs
- ListBindingConverter.cs
- WebPartUtil.cs
- _RequestCacheProtocol.cs
- TraceInternal.cs
- System.Data_BID.cs
- FileDialog_Vista.cs
- CompoundFileStreamReference.cs
- ProjectionPathBuilder.cs
- ThemeableAttribute.cs
- WmlLiteralTextAdapter.cs
- BooleanConverter.cs
- WebPartVerb.cs
- SortedSet.cs
- ZoneIdentityPermission.cs
- ToolStripContainer.cs
- _Semaphore.cs
- SortedList.cs
- DataContractSerializerOperationBehavior.cs
- PageCodeDomTreeGenerator.cs
- DataGridViewCellParsingEventArgs.cs
- Helpers.cs
- _IPv6Address.cs
- ToolZone.cs
- NullableLongMinMaxAggregationOperator.cs
- ActiveDocumentEvent.cs
- EnumValidator.cs
- NumberFormatter.cs
- ColumnResult.cs
- PackageRelationship.cs
- StrongNameKeyPair.cs
- SecurityTokenRequirement.cs
- SqlDataSourceConnectionPanel.cs
- DocumentViewer.cs
- GC.cs
- CheckBoxAutomationPeer.cs
- CursorInteropHelper.cs