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
- DataGridViewTopRowAccessibleObject.cs
- IBuiltInEvidence.cs
- BindableAttribute.cs
- CacheEntry.cs
- ConfigurationLockCollection.cs
- XmlSchemaDatatype.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ServiceHostingEnvironment.cs
- UInt32Converter.cs
- Preprocessor.cs
- ChannelBase.cs
- ApplicationInterop.cs
- GridViewUpdatedEventArgs.cs
- SafePointer.cs
- UnmanagedMemoryStreamWrapper.cs
- DataGridViewRowHeaderCell.cs
- InstanceStoreQueryResult.cs
- MissingMemberException.cs
- ExpandCollapseProviderWrapper.cs
- TransformerTypeCollection.cs
- MediaContextNotificationWindow.cs
- PointConverter.cs
- RouteData.cs
- Expressions.cs
- LinqDataSourceHelper.cs
- RequiredFieldValidator.cs
- ISAPIApplicationHost.cs
- cache.cs
- MsmqOutputSessionChannel.cs
- EntitySetBaseCollection.cs
- PathData.cs
- AsymmetricKeyExchangeFormatter.cs
- SqlConnectionPoolProviderInfo.cs
- ControlEvent.cs
- GroupItemAutomationPeer.cs
- PageContentCollection.cs
- LifetimeServices.cs
- FontDialog.cs
- Point3DAnimationUsingKeyFrames.cs
- InputMethodStateTypeInfo.cs
- GreenMethods.cs
- CriticalExceptions.cs
- RtfToXamlReader.cs
- Configuration.cs
- CollectionView.cs
- DesignerPerfEventProvider.cs
- HttpListener.cs
- HwndSourceKeyboardInputSite.cs
- DocumentsTrace.cs
- ComplexPropertyEntry.cs
- TypedDataSourceCodeGenerator.cs
- QueryProcessor.cs
- ServerValidateEventArgs.cs
- SqlDataSource.cs
- Single.cs
- WeakReference.cs
- ButtonBaseAutomationPeer.cs
- ParallelTimeline.cs
- ByteFacetDescriptionElement.cs
- ThemeDirectoryCompiler.cs
- CodeTypeDelegate.cs
- Funcletizer.cs
- ComAdminWrapper.cs
- Action.cs
- EpmContentDeSerializerBase.cs
- ListDictionary.cs
- StatusBar.cs
- ContextProperty.cs
- Vector3D.cs
- ListChunk.cs
- DashStyles.cs
- TableRow.cs
- RegistryExceptionHelper.cs
- DebuggerAttributes.cs
- SchemaDeclBase.cs
- Select.cs
- SourceFileInfo.cs
- EntityUtil.cs
- TemplateBindingExpression.cs
- ResXResourceReader.cs
- ExitEventArgs.cs
- cache.cs
- DispatcherFrame.cs
- ValueExpressions.cs
- ColorInterpolationModeValidation.cs
- BindingListCollectionView.cs
- DocumentViewerBaseAutomationPeer.cs
- SocketElement.cs
- Model3D.cs
- DataGridViewMethods.cs
- XmlCDATASection.cs
- HatchBrush.cs
- CqlWriter.cs
- _HeaderInfo.cs
- ImageCodecInfoPrivate.cs
- FixedSOMPageElement.cs
- HealthMonitoringSectionHelper.cs
- XmlSchemaDatatype.cs
- DbConnectionInternal.cs
- XmlEventCache.cs