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
- DataGridViewSortCompareEventArgs.cs
- BindingEntityInfo.cs
- DefaultBindingPropertyAttribute.cs
- MexHttpBindingElement.cs
- TypeResolver.cs
- NonClientArea.cs
- DesignerActionPanel.cs
- PolyBezierSegment.cs
- Model3D.cs
- ActiveXContainer.cs
- XmlCollation.cs
- ToolStripOverflowButton.cs
- TextMessageEncodingBindingElement.cs
- VariableExpressionConverter.cs
- LoadedOrUnloadedOperation.cs
- ApplicationHost.cs
- CodeObjectCreateExpression.cs
- SerializationAttributes.cs
- ToggleButton.cs
- Animatable.cs
- StringFunctions.cs
- XmlSchemaExporter.cs
- CanonicalFontFamilyReference.cs
- ImageList.cs
- HostExecutionContextManager.cs
- XmlSchemaNotation.cs
- SignedPkcs7.cs
- TimeSpanStorage.cs
- TextWriterTraceListener.cs
- SynchronizationLockException.cs
- ExpandCollapsePattern.cs
- X500Name.cs
- ActivityUtilities.cs
- XmlElementList.cs
- WebReferenceOptions.cs
- ValidationHelper.cs
- PartialClassGenerationTask.cs
- TTSVoice.cs
- PackageFilter.cs
- Quad.cs
- DateTimeSerializationSection.cs
- WorkflowInvoker.cs
- Typography.cs
- DynamicVirtualDiscoSearcher.cs
- ButtonBase.cs
- VarInfo.cs
- ExtendedPropertyCollection.cs
- SqlWebEventProvider.cs
- Metafile.cs
- ListMarkerSourceInfo.cs
- IOException.cs
- WsatProxy.cs
- SiteMap.cs
- CmsInterop.cs
- DataGridViewCellStyleConverter.cs
- BamlResourceSerializer.cs
- StreamMarshaler.cs
- HttpRequestWrapper.cs
- loginstatus.cs
- MenuItemStyle.cs
- MapPathBasedVirtualPathProvider.cs
- CodeThrowExceptionStatement.cs
- MappingSource.cs
- StringOutput.cs
- WebPartDisplayMode.cs
- IncomingWebResponseContext.cs
- CodeTypeDeclarationCollection.cs
- ParameterReplacerVisitor.cs
- ProfileBuildProvider.cs
- LayoutUtils.cs
- WebProxyScriptElement.cs
- DynamicDataManager.cs
- PerCallInstanceContextProvider.cs
- PaperSource.cs
- BindingOperations.cs
- ISO2022Encoding.cs
- WebHeaderCollection.cs
- RuleSetBrowserDialog.cs
- SqlUtil.cs
- TextSerializer.cs
- VirtualPathUtility.cs
- TagPrefixCollection.cs
- BasePattern.cs
- entitydatasourceentitysetnameconverter.cs
- ServiceOperation.cs
- Win32KeyboardDevice.cs
- DataServiceProcessingPipelineEventArgs.cs
- ConstructorNeedsTagAttribute.cs
- Error.cs
- LogSwitch.cs
- SiteMapDataSource.cs
- SortDescription.cs
- ImportStoreException.cs
- ColumnWidthChangingEvent.cs
- IteratorFilter.cs
- SqlDataSourceAdvancedOptionsForm.cs
- RoleService.cs
- CTreeGenerator.cs
- SettingsSavedEventArgs.cs
- ScriptingProfileServiceSection.cs