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
- GlyphElement.cs
- RequestCachePolicy.cs
- ControlBuilderAttribute.cs
- RectAnimationBase.cs
- XmlQualifiedName.cs
- PropertyPathWorker.cs
- WeakReferenceKey.cs
- SettingsProperty.cs
- CreateUserWizard.cs
- FormViewRow.cs
- FocusChangedEventArgs.cs
- SqlDataSourceCommandEventArgs.cs
- EnumerableRowCollectionExtensions.cs
- UriTemplateTrieNode.cs
- GenericPrincipal.cs
- SocketInformation.cs
- XmlQualifiedName.cs
- AccessibilityHelperForVista.cs
- InvokeSchedule.cs
- VisualStyleRenderer.cs
- XPathParser.cs
- WinCategoryAttribute.cs
- DocumentReferenceCollection.cs
- IPHostEntry.cs
- Size.cs
- RepeatInfo.cs
- FontStretches.cs
- CachingHintValidation.cs
- LostFocusEventManager.cs
- InputScopeManager.cs
- HtmlWindowCollection.cs
- MetaColumn.cs
- PeerMaintainer.cs
- SmiEventSink.cs
- ArglessEventHandlerProxy.cs
- TdsParserSessionPool.cs
- TemplateComponentConnector.cs
- FormsIdentity.cs
- BevelBitmapEffect.cs
- PrefixHandle.cs
- RectConverter.cs
- ValueUtilsSmi.cs
- DetailsViewInsertEventArgs.cs
- FileCodeGroup.cs
- InvalidProgramException.cs
- ScriptDescriptor.cs
- LinkConverter.cs
- MouseEventArgs.cs
- ActivityCodeDomSerializationManager.cs
- InfoCardClaim.cs
- InputEventArgs.cs
- DispatcherExceptionEventArgs.cs
- _TransmitFileOverlappedAsyncResult.cs
- SoapProtocolReflector.cs
- MenuItem.cs
- _WebProxyDataBuilder.cs
- DataGridPagerStyle.cs
- DataSourceXmlClassAttribute.cs
- XmlIlVisitor.cs
- UnsafeMethods.cs
- Select.cs
- WorkflowStateRollbackService.cs
- ForwardPositionQuery.cs
- DropDownButton.cs
- PerfCounters.cs
- HttpModuleCollection.cs
- XmlAnyAttributeAttribute.cs
- WriteableBitmap.cs
- DefaultPrintController.cs
- MatcherBuilder.cs
- CodeDomDecompiler.cs
- TableRowGroup.cs
- TypeGeneratedEventArgs.cs
- VisualBasicSettingsHandler.cs
- QueryOperationResponseOfT.cs
- TemplateControlCodeDomTreeGenerator.cs
- ThreadStaticAttribute.cs
- ShapeTypeface.cs
- OperationInfo.cs
- XmlSiteMapProvider.cs
- ColorConverter.cs
- ManagedIStream.cs
- FunctionMappingTranslator.cs
- DocumentViewer.cs
- SQLSingleStorage.cs
- SerializationSectionGroup.cs
- ExpandCollapseProviderWrapper.cs
- SelectionItemProviderWrapper.cs
- ColumnHeaderCollectionEditor.cs
- WebPartCatalogAddVerb.cs
- SymDocumentType.cs
- ViewEventArgs.cs
- Vector3DConverter.cs
- GrowingArray.cs
- ExcludePathInfo.cs
- DataSourceHelper.cs
- TableNameAttribute.cs
- WebRequestModuleElementCollection.cs
- ExecutionContext.cs
- ProcessModule.cs