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
- SiteMapHierarchicalDataSourceView.cs
- EmissiveMaterial.cs
- SrgsItemList.cs
- DoubleStorage.cs
- XsltInput.cs
- RSAOAEPKeyExchangeFormatter.cs
- ThreadSafeList.cs
- SignatureDescription.cs
- WindowsTitleBar.cs
- ExceptionHandlerDesigner.cs
- XmlSchemaAppInfo.cs
- RegexWorker.cs
- ExpressionCopier.cs
- VectorConverter.cs
- COM2ICategorizePropertiesHandler.cs
- MSAANativeProvider.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- OrthographicCamera.cs
- DATA_BLOB.cs
- TextBoxRenderer.cs
- CreateSequenceResponse.cs
- RTLAwareMessageBox.cs
- ObjectListFieldCollection.cs
- DataAdapter.cs
- DataGridCheckBoxColumn.cs
- WebPartConnectionsDisconnectVerb.cs
- ExeContext.cs
- PerformanceCounterLib.cs
- ContextMenuStrip.cs
- TypeExtension.cs
- ExplicitDiscriminatorMap.cs
- ResourceExpression.cs
- HtmlUtf8RawTextWriter.cs
- SystemWebSectionGroup.cs
- AccessViolationException.cs
- OutKeywords.cs
- SettingsBase.cs
- DataSet.cs
- ThumbAutomationPeer.cs
- TraceData.cs
- RubberbandSelector.cs
- IgnoreFileBuildProvider.cs
- ServiceHostFactory.cs
- ThicknessConverter.cs
- EntityModelBuildProvider.cs
- MethodAccessException.cs
- DefaultSerializationProviderAttribute.cs
- OleDbCommand.cs
- ToolStripContentPanel.cs
- BindingBase.cs
- InputReferenceExpression.cs
- _UriSyntax.cs
- EntityParameterCollection.cs
- StringExpressionSet.cs
- IPAddressCollection.cs
- RootBrowserWindow.cs
- NamedElement.cs
- JournalNavigationScope.cs
- ResourcePermissionBaseEntry.cs
- Matrix3DValueSerializer.cs
- ForceCopyBuildProvider.cs
- ToolStripDropDownButton.cs
- TimestampInformation.cs
- XmlWhitespace.cs
- SeverityFilter.cs
- FormClosedEvent.cs
- XmlSchemaSimpleTypeUnion.cs
- WebPartTracker.cs
- DesignerWidgets.cs
- PKCS1MaskGenerationMethod.cs
- CodeAccessSecurityEngine.cs
- ColorDialog.cs
- AdRotator.cs
- StorageEndPropertyMapping.cs
- UniqueIdentifierService.cs
- TemplateControlParser.cs
- shaper.cs
- Rect3D.cs
- EventListenerClientSide.cs
- ElementProxy.cs
- RegisteredScript.cs
- unsafenativemethodstextservices.cs
- DataObject.cs
- DictionaryBase.cs
- MenuItemStyleCollection.cs
- SymLanguageType.cs
- Window.cs
- OptimalTextSource.cs
- DataContractSerializer.cs
- AssociatedControlConverter.cs
- Journaling.cs
- ListViewGroupItemCollection.cs
- RectangleGeometry.cs
- DataRowChangeEvent.cs
- WebPartZoneBase.cs
- XLinq.cs
- ControlPaint.cs
- DefaultObjectMappingItemCollection.cs
- DeflateStream.cs
- QuaternionRotation3D.cs