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
- DiagnosticTrace.cs
- DataMemberFieldConverter.cs
- Operand.cs
- UpdatePanelTrigger.cs
- RegexCompiler.cs
- ApplicationId.cs
- ContractCodeDomInfo.cs
- WebPartUserCapability.cs
- FloaterParagraph.cs
- WebPartUtil.cs
- RegexStringValidatorAttribute.cs
- HwndAppCommandInputProvider.cs
- AtlasWeb.Designer.cs
- StorageFunctionMapping.cs
- BrowserCapabilitiesFactory.cs
- SequentialUshortCollection.cs
- GroupItemAutomationPeer.cs
- RawStylusInputReport.cs
- DesignerActionService.cs
- SqlErrorCollection.cs
- XmlSchemaElement.cs
- ImmComposition.cs
- DataBindingExpressionBuilder.cs
- SqlCharStream.cs
- MobileUserControlDesigner.cs
- AnimationStorage.cs
- XmlNotation.cs
- KeyValueInternalCollection.cs
- Message.cs
- LinqDataSourceHelper.cs
- RemotingException.cs
- Track.cs
- WindowsAuthenticationModule.cs
- EntityDataSourceQueryBuilder.cs
- ThreadPool.cs
- ProfileProvider.cs
- ManagedCodeMarkers.cs
- ForeignConstraint.cs
- ChannelManagerService.cs
- DragEventArgs.cs
- EventLogRecord.cs
- Exceptions.cs
- SelectionPattern.cs
- HealthMonitoringSection.cs
- PartitionedStreamMerger.cs
- AnnotationHelper.cs
- ErrorWrapper.cs
- WorkflowOperationAsyncResult.cs
- HtmlTableCellCollection.cs
- EntityUtil.cs
- DuplicateContext.cs
- DecoderReplacementFallback.cs
- Documentation.cs
- FormsAuthenticationModule.cs
- ExtendedPropertyDescriptor.cs
- OutOfMemoryException.cs
- XmlTextReader.cs
- XmlSchemaComplexType.cs
- StructuralObject.cs
- ReaderWriterLockSlim.cs
- DependencyPropertyHelper.cs
- InstanceData.cs
- DocumentPageViewAutomationPeer.cs
- GacUtil.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- Translator.cs
- VerticalAlignConverter.cs
- ResolveNameEventArgs.cs
- BaseTemplateParser.cs
- QueryStringParameter.cs
- SubqueryTrackingVisitor.cs
- BaseUriHelper.cs
- _Semaphore.cs
- SafeCryptoHandles.cs
- FileLogRecordHeader.cs
- Positioning.cs
- ParallelTimeline.cs
- SByteStorage.cs
- EntityCommandCompilationException.cs
- BaseDataBoundControl.cs
- PageCatalogPart.cs
- ListControlBuilder.cs
- ZoomPercentageConverter.cs
- DeflateEmulationStream.cs
- SchemaNames.cs
- FtpRequestCacheValidator.cs
- ExpanderAutomationPeer.cs
- PropertyValue.cs
- ClipboardProcessor.cs
- Normalizer.cs
- SqlNodeAnnotation.cs
- XmlEncodedRawTextWriter.cs
- PathSegment.cs
- PublisherIdentityPermission.cs
- SecureStringHasher.cs
- _ConnectStream.cs
- SchemaElement.cs
- WebPartDisplayModeCancelEventArgs.cs
- XamlReaderHelper.cs
- SafePointer.cs