Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media3D / Vector3dCollection.cs / 1305600 / 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
- DataControlFieldCell.cs
- QueueProcessor.cs
- HttpServerVarsCollection.cs
- PerformanceCounterPermissionAttribute.cs
- AnnotationStore.cs
- RenderData.cs
- SqlUdtInfo.cs
- QueryCacheKey.cs
- XPathCompileException.cs
- PartialList.cs
- CodeNamespaceImportCollection.cs
- NodeInfo.cs
- CircleEase.cs
- CodeAttributeDeclaration.cs
- SafeSecurityHandles.cs
- ADMembershipUser.cs
- RoleManagerEventArgs.cs
- DependencyObjectProvider.cs
- NavigationCommands.cs
- ClientSettingsProvider.cs
- ADConnectionHelper.cs
- Triangle.cs
- ItemsPresenter.cs
- EncryptedPackage.cs
- ConstraintCollection.cs
- AttributeCollection.cs
- HasCopySemanticsAttribute.cs
- XsltException.cs
- CreateUserWizard.cs
- TripleDESCryptoServiceProvider.cs
- SettingsPropertyNotFoundException.cs
- ScopelessEnumAttribute.cs
- FormatVersion.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- PeerTransportCredentialType.cs
- basecomparevalidator.cs
- ListViewTableCell.cs
- MediaElementAutomationPeer.cs
- VScrollProperties.cs
- ReadOnlyActivityGlyph.cs
- WindowsStreamSecurityBindingElement.cs
- ViewStateAttachedPropertyFeature.cs
- ComponentEditorForm.cs
- DrawingDrawingContext.cs
- DomNameTable.cs
- LoopExpression.cs
- ClientConfigurationHost.cs
- NameTable.cs
- _PooledStream.cs
- BlurBitmapEffect.cs
- ProviderSettingsCollection.cs
- MLangCodePageEncoding.cs
- XmlAttributeCache.cs
- BoundColumn.cs
- CookieHandler.cs
- PropertyCondition.cs
- ServiceOperationParameter.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- ScriptReferenceEventArgs.cs
- Comparer.cs
- Missing.cs
- AmbientProperties.cs
- UnsignedPublishLicense.cs
- LogPolicy.cs
- HttpWebRequest.cs
- DataServiceRequestArgs.cs
- CollectionChangeEventArgs.cs
- Html32TextWriter.cs
- XmlUTF8TextWriter.cs
- CursorConverter.cs
- HwndMouseInputProvider.cs
- connectionpool.cs
- FamilyTypefaceCollection.cs
- CounterCreationData.cs
- WebPartEditorApplyVerb.cs
- counter.cs
- WebPartCatalogCloseVerb.cs
- PackagingUtilities.cs
- CloudCollection.cs
- RuleInfoComparer.cs
- TextRunTypographyProperties.cs
- DashStyle.cs
- DebugView.cs
- WebPartDescriptionCollection.cs
- ProfileModule.cs
- IdleTimeoutMonitor.cs
- PropertyIDSet.cs
- ScrollViewerAutomationPeer.cs
- ScriptingProfileServiceSection.cs
- ProgressiveCrcCalculatingStream.cs
- QilInvokeLateBound.cs
- FieldToken.cs
- COM2TypeInfoProcessor.cs
- WebPartConnectionsCloseVerb.cs
- CollectionViewProxy.cs
- EtwProvider.cs
- CodeAccessPermission.cs
- securitycriticaldata.cs
- TrackingProfileManager.cs
- Utility.cs