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
- EndpointDiscoveryElement.cs
- TCEAdapterGenerator.cs
- UmAlQuraCalendar.cs
- UnsafeNativeMethods.cs
- JsonReader.cs
- ReflectionUtil.cs
- XmlWriterDelegator.cs
- TraceListener.cs
- TrailingSpaceComparer.cs
- DefaultWorkflowSchedulerService.cs
- EffectiveValueEntry.cs
- WindowsGraphics.cs
- PropertyStore.cs
- EncoderParameter.cs
- Viewport2DVisual3D.cs
- XmlDocumentSurrogate.cs
- UserNameSecurityTokenProvider.cs
- XmlUtf8RawTextWriter.cs
- tooltip.cs
- SqlBulkCopyColumnMappingCollection.cs
- Stackframe.cs
- ConnectionPoolManager.cs
- SmiConnection.cs
- SourceElementsCollection.cs
- TextTreeInsertUndoUnit.cs
- CalendarTable.cs
- EventEntry.cs
- SingleKeyFrameCollection.cs
- DateTimeOffset.cs
- GridSplitterAutomationPeer.cs
- MetadataResolver.cs
- StartFileNameEditor.cs
- DataTableReaderListener.cs
- SchemaSetCompiler.cs
- GrammarBuilderWildcard.cs
- Point4D.cs
- PackWebResponse.cs
- DataControlField.cs
- SQLInt64.cs
- ExtensionWindowResizeGrip.cs
- ConfigurationManagerHelperFactory.cs
- Int32Rect.cs
- ModelUtilities.cs
- QueryParameter.cs
- FuncTypeConverter.cs
- PassportAuthenticationModule.cs
- PagePropertiesChangingEventArgs.cs
- SafeCryptoKeyHandle.cs
- ApplicationBuildProvider.cs
- IriParsingElement.cs
- StrictAndMessageFilter.cs
- COAUTHINFO.cs
- EdmRelationshipRoleAttribute.cs
- MenuStrip.cs
- FactoryMaker.cs
- SizeConverter.cs
- WebPageTraceListener.cs
- VisualTreeUtils.cs
- HtmlControlAdapter.cs
- TextHintingModeValidation.cs
- ClientUriBehavior.cs
- SoapFormatter.cs
- QueryGeneratorBase.cs
- CustomAttributeBuilder.cs
- WorkflowCreationContext.cs
- HttpListenerElement.cs
- IOException.cs
- LOSFormatter.cs
- EditorPartCollection.cs
- Predicate.cs
- Evaluator.cs
- TextServicesPropertyRanges.cs
- BitmapEffectrendercontext.cs
- CustomValidator.cs
- ResetableIterator.cs
- DeviceSpecificDesigner.cs
- TypeExtension.cs
- XmlArrayAttribute.cs
- Typography.cs
- UniqueID.cs
- ObservableDictionary.cs
- StringOutput.cs
- StdValidatorsAndConverters.cs
- ValidationHelper.cs
- recordstate.cs
- GenericTypeParameterConverter.cs
- FunctionQuery.cs
- ActivityBindForm.cs
- TemplateKey.cs
- TextElementEditingBehaviorAttribute.cs
- ActionFrame.cs
- SqlMultiplexer.cs
- GetWinFXPath.cs
- LongValidatorAttribute.cs
- TransactionChannelFaultConverter.cs
- TokenizerHelper.cs
- Dictionary.cs
- AvTraceDetails.cs
- ComEventsHelper.cs
- AtomMaterializerLog.cs