Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FileDialogCustomPlacesCollection.cs
- IteratorDescriptor.cs
- FontDifferentiator.cs
- HtmlInputPassword.cs
- CacheForPrimitiveTypes.cs
- TableColumnCollection.cs
- StatusBarPanelClickEvent.cs
- DesignSurfaceEvent.cs
- HttpListener.cs
- JsonUriDataContract.cs
- SqlGenerator.cs
- GraphicsPath.cs
- ManagementPath.cs
- DynamicScriptObject.cs
- ItemChangedEventArgs.cs
- RequestQueue.cs
- XhtmlTextWriter.cs
- WebMethodAttribute.cs
- BlurEffect.cs
- InvokeGenerator.cs
- TransformGroup.cs
- LocatorPartList.cs
- HttpRequest.cs
- DataControlLinkButton.cs
- XmlWellformedWriter.cs
- ISCIIEncoding.cs
- TextParagraphView.cs
- ToolboxItemFilterAttribute.cs
- OdbcConnection.cs
- UserPreferenceChangingEventArgs.cs
- BlurBitmapEffect.cs
- AxisAngleRotation3D.cs
- ScriptManagerProxy.cs
- SequenceDesigner.cs
- AnonymousIdentificationSection.cs
- ResourceDefaultValueAttribute.cs
- StringBuilder.cs
- DataRelation.cs
- OleDbMetaDataFactory.cs
- InkCanvasSelectionAdorner.cs
- Rights.cs
- SelectionService.cs
- FormViewUpdatedEventArgs.cs
- ValidatedControlConverter.cs
- GridViewColumnCollection.cs
- ProcessingInstructionAction.cs
- RSAProtectedConfigurationProvider.cs
- COM2ExtendedTypeConverter.cs
- DataGridTextBoxColumn.cs
- ListViewHitTestInfo.cs
- BadImageFormatException.cs
- StickyNote.cs
- ExtendedPropertyDescriptor.cs
- _NegoStream.cs
- Unit.cs
- XmlEntityReference.cs
- StateManagedCollection.cs
- NativeMsmqMessage.cs
- IntSecurity.cs
- SerializationEventsCache.cs
- ObjectViewListener.cs
- WindowsListViewItem.cs
- ServiceBusyException.cs
- IODescriptionAttribute.cs
- XPathQilFactory.cs
- RelationshipDetailsCollection.cs
- KeyFrames.cs
- EventLogException.cs
- DetailsViewDeleteEventArgs.cs
- CellRelation.cs
- DefaultValueTypeConverter.cs
- DeclaredTypeValidator.cs
- ProtocolElement.cs
- CapiSafeHandles.cs
- MergeFilterQuery.cs
- IntegerValidatorAttribute.cs
- LinqExpressionNormalizer.cs
- OleDbError.cs
- _HeaderInfo.cs
- CorruptingExceptionCommon.cs
- ModifiableIteratorCollection.cs
- AdapterDictionary.cs
- DispatcherHooks.cs
- XmlCharType.cs
- IncrementalCompileAnalyzer.cs
- UserControlCodeDomTreeGenerator.cs
- WeakHashtable.cs
- ValueQuery.cs
- ArrayList.cs
- CompoundFileStorageReference.cs
- WebEvents.cs
- PropertyMetadata.cs
- EventlogProvider.cs
- JapaneseCalendar.cs
- LinqMaximalSubtreeNominator.cs
- HtmlToClrEventProxy.cs
- OdbcEnvironment.cs
- ADRole.cs
- UseManagedPresentationElement.cs
- DateTimeFormatInfo.cs