Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- NestedContainer.cs
- BamlVersionHeader.cs
- RegexWorker.cs
- ResourceDictionary.cs
- ReachDocumentReferenceSerializerAsync.cs
- FamilyCollection.cs
- ContentControl.cs
- LinkLabelLinkClickedEvent.cs
- OperatingSystem.cs
- CompilerTypeWithParams.cs
- ImageDrawing.cs
- ProcessHost.cs
- CreateRefExpr.cs
- PathGradientBrush.cs
- FileSystemEventArgs.cs
- FileDetails.cs
- AdapterDictionary.cs
- XmlDictionaryReaderQuotas.cs
- GridViewPageEventArgs.cs
- FormViewDeleteEventArgs.cs
- SpAudioStreamWrapper.cs
- StateWorkerRequest.cs
- MultiTargetingUtil.cs
- StringWriter.cs
- MimeMultiPart.cs
- TypeForwardedToAttribute.cs
- TransformGroup.cs
- Visitors.cs
- DataGridViewSelectedCellCollection.cs
- CaseStatementProjectedSlot.cs
- NamedPipeAppDomainProtocolHandler.cs
- RSAProtectedConfigurationProvider.cs
- TextTreeTextBlock.cs
- CodeVariableReferenceExpression.cs
- Console.cs
- PerformanceCountersElement.cs
- ScriptingSectionGroup.cs
- Rect.cs
- SoapFormatExtensions.cs
- ListViewEditEventArgs.cs
- Menu.cs
- localization.cs
- PassportPrincipal.cs
- XmlSchemaImport.cs
- HtmlUtf8RawTextWriter.cs
- TextCollapsingProperties.cs
- Item.cs
- RoleManagerModule.cs
- EdgeModeValidation.cs
- CacheMemory.cs
- TextRangeProviderWrapper.cs
- UserNameSecurityTokenAuthenticator.cs
- SmiEventStream.cs
- ContainerFilterService.cs
- InputLanguageProfileNotifySink.cs
- ADMembershipProvider.cs
- EndpointConfigContainer.cs
- PathGeometry.cs
- _ProxyChain.cs
- PreservationFileReader.cs
- EntityCommandCompilationException.cs
- CodeLinePragma.cs
- Fx.cs
- TranslateTransform3D.cs
- ChannelServices.cs
- IgnoreDeviceFilterElement.cs
- PixelShader.cs
- PrintEvent.cs
- GridViewCancelEditEventArgs.cs
- DataTransferEventArgs.cs
- _HTTPDateParse.cs
- FullTextBreakpoint.cs
- MobileUITypeEditor.cs
- XmlSchemaInfo.cs
- DbExpressionRules.cs
- Condition.cs
- SystemIPGlobalStatistics.cs
- Section.cs
- BindingContext.cs
- CharacterString.cs
- CompilerScope.Storage.cs
- RepeatButtonAutomationPeer.cs
- MouseDevice.cs
- DelayedRegex.cs
- DetailsViewDeleteEventArgs.cs
- InfocardExtendedInformationEntry.cs
- XmlSecureResolver.cs
- TreeViewImageIndexConverter.cs
- HwndSourceKeyboardInputSite.cs
- RoutedEventValueSerializer.cs
- ExtensionSimplifierMarkupObject.cs
- XmlNavigatorStack.cs
- SafeSecurityHelper.cs
- KernelTypeValidation.cs
- DataServiceContext.cs
- DnsEndpointIdentity.cs
- SpellerStatusTable.cs
- RefreshEventArgs.cs
- OperandQuery.cs
- CodeSnippetCompileUnit.cs