Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ContainerUIElement3D.cs
- XmlResolver.cs
- LicenseException.cs
- CqlLexer.cs
- DateRangeEvent.cs
- NoPersistHandle.cs
- XmlSchemaInfo.cs
- WebConfigurationManager.cs
- ProfilePropertySettingsCollection.cs
- Expressions.cs
- EventWaitHandle.cs
- CodeArgumentReferenceExpression.cs
- ComponentCommands.cs
- SafeFileMapViewHandle.cs
- ListBoxAutomationPeer.cs
- PropertyRecord.cs
- Subset.cs
- SqlMethods.cs
- ParameterInfo.cs
- BitArray.cs
- MembershipUser.cs
- EnumMember.cs
- MetadataUtilsSmi.cs
- Token.cs
- OleDbException.cs
- MenuItemCollectionEditorDialog.cs
- LexicalChunk.cs
- TableColumnCollection.cs
- RuntimeEnvironment.cs
- FixedSOMLineRanges.cs
- RelationshipType.cs
- CultureTableRecord.cs
- SchemaCreator.cs
- SingleStorage.cs
- AccessControlEntry.cs
- ComponentSerializationService.cs
- SmiRecordBuffer.cs
- GuidelineCollection.cs
- QueryExpression.cs
- RemotingException.cs
- XmlSchemaGroup.cs
- FormatterConverter.cs
- GenericUriParser.cs
- PolyBezierSegmentFigureLogic.cs
- QueryOptionExpression.cs
- ParallelTimeline.cs
- AnalyzedTree.cs
- ListViewInsertionMark.cs
- XmlSchemaSimpleTypeList.cs
- AssemblyAssociatedContentFileAttribute.cs
- SoapExtensionTypeElement.cs
- SplashScreenNativeMethods.cs
- DateTime.cs
- ServiceInfoCollection.cs
- ValueQuery.cs
- DiscoveryExceptionDictionary.cs
- GenericRootAutomationPeer.cs
- HashLookup.cs
- UpdateExpressionVisitor.cs
- SQLBytesStorage.cs
- IResourceProvider.cs
- DTCTransactionManager.cs
- CLSCompliantAttribute.cs
- SmiXetterAccessMap.cs
- TreeViewAutomationPeer.cs
- XamlInt32CollectionSerializer.cs
- Queue.cs
- SiteIdentityPermission.cs
- ObjectItemAssemblyLoader.cs
- IntegrationExceptionEventArgs.cs
- OleDbEnumerator.cs
- ListViewInsertEventArgs.cs
- FixedSOMLineRanges.cs
- StylusLogic.cs
- XAMLParseException.cs
- AssertFilter.cs
- BrowsableAttribute.cs
- InputBindingCollection.cs
- ScrollBarRenderer.cs
- WorkflowEventArgs.cs
- SiteMapNodeItemEventArgs.cs
- Helper.cs
- HttpListenerContext.cs
- TransactionProtocol.cs
- ConfigurationPropertyAttribute.cs
- WindowsAuthenticationModule.cs
- TextSpan.cs
- ToolStripArrowRenderEventArgs.cs
- DocumentPageView.cs
- EditorZone.cs
- BrushValueSerializer.cs
- ScriptComponentDescriptor.cs
- AnnotationService.cs
- SearchForVirtualItemEventArgs.cs
- OrCondition.cs
- CloseSequence.cs
- PersonalizationEntry.cs
- FormViewRow.cs
- IgnoreFileBuildProvider.cs
- HttpMethodConstraint.cs