Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media3D / Point3DCollection.cs / 1305600 / Point3DCollection.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D point 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 { ////// Point3D - 3D point representation. /// Defaults to (0,0,0). /// public partial class Point3DCollection { ////// 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() ; Point3DCollection collection = new Point3DCollection( (int) count) ; for ( uint i = 0; i < count ; i ++ ) { Point3D point = new Point3D( 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: 3D point 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 { ////// Point3D - 3D point representation. /// Defaults to (0,0,0). /// public partial class Point3DCollection { ////// 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() ; Point3DCollection collection = new Point3DCollection( (int) count) ; for ( uint i = 0; i < count ; i ++ ) { Point3D point = new Point3D( 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
- WindowsPen.cs
- NameValueCollection.cs
- SqlDataSourceSelectingEventArgs.cs
- ProcessingInstructionAction.cs
- Errors.cs
- QueryOperationResponseOfT.cs
- ProcessHostFactoryHelper.cs
- CodeAttributeDeclarationCollection.cs
- FrameworkContentElement.cs
- DESCryptoServiceProvider.cs
- SerializableAttribute.cs
- EventlogProvider.cs
- MailAddressCollection.cs
- XmlEnumAttribute.cs
- XmlHelper.cs
- DataGridViewCell.cs
- SelectedDatesCollection.cs
- KeyConstraint.cs
- SafeNativeMethods.cs
- AssemblyGen.cs
- GCHandleCookieTable.cs
- JsonCollectionDataContract.cs
- ADMembershipUser.cs
- HttpCacheVary.cs
- Compilation.cs
- TextParagraphProperties.cs
- XamlParser.cs
- GlyphManager.cs
- ByteConverter.cs
- HtmlToClrEventProxy.cs
- RangeValuePatternIdentifiers.cs
- UpdatePanelTriggerCollection.cs
- ProcessModelSection.cs
- ParallelTimeline.cs
- DictionaryEntry.cs
- QilVisitor.cs
- WorkflowMarkupSerializationProvider.cs
- UnknownExceptionActionHelper.cs
- ThreadAttributes.cs
- LoadedEvent.cs
- ObjectConverter.cs
- sapiproxy.cs
- XmlSubtreeReader.cs
- SendKeys.cs
- ParameterInfo.cs
- XdrBuilder.cs
- SafeRightsManagementHandle.cs
- InstanceDataCollectionCollection.cs
- BufferedOutputStream.cs
- EdgeModeValidation.cs
- ComponentCollection.cs
- XsdCachingReader.cs
- Globals.cs
- Classification.cs
- OAVariantLib.cs
- StoreContentChangedEventArgs.cs
- HttpCacheVaryByContentEncodings.cs
- IntPtr.cs
- PropertyEmitter.cs
- OutputScopeManager.cs
- ViewGenResults.cs
- HttpModulesSection.cs
- SeekStoryboard.cs
- MemberHolder.cs
- WindowsTreeView.cs
- StatusBarDrawItemEvent.cs
- XmlReturnWriter.cs
- LinqDataSourceEditData.cs
- KeyboardNavigation.cs
- ValueTable.cs
- AnnotationService.cs
- KeyValueConfigurationCollection.cs
- NotImplementedException.cs
- IntSecurity.cs
- ExpressionLink.cs
- EdmFunction.cs
- XmlSerializationReader.cs
- TransactionChannelFaultConverter.cs
- UInt32.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- UnderstoodHeaders.cs
- CodeDomSerializationProvider.cs
- ConnectionOrientedTransportManager.cs
- SecureEnvironment.cs
- PasswordBox.cs
- NullableLongSumAggregationOperator.cs
- ImageSourceValueSerializer.cs
- SiteMapDataSource.cs
- PerformanceCounterPermission.cs
- entityreference_tresulttype.cs
- WebControlsSection.cs
- Image.cs
- BinaryConverter.cs
- SQLChars.cs
- SchemaLookupTable.cs
- EntityViewGenerator.cs
- RSAProtectedConfigurationProvider.cs
- TemplatePropertyEntry.cs
- WpfWebRequestHelper.cs
- AuthenticationService.cs