Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- AccessibleObject.cs
- TemplatePropertyEntry.cs
- UnsafeCollabNativeMethods.cs
- TdsParameterSetter.cs
- ErrorEventArgs.cs
- TextSelection.cs
- BaseHashHelper.cs
- ServiceModelConfigurationSectionCollection.cs
- ConnectAlgorithms.cs
- ExpressionNode.cs
- QueryInterceptorAttribute.cs
- Control.cs
- SubtreeProcessor.cs
- XmlReader.cs
- ThicknessAnimationUsingKeyFrames.cs
- EncoderParameter.cs
- BitmapMetadataBlob.cs
- ShaderEffect.cs
- SequenceNumber.cs
- IndexedEnumerable.cs
- StoryFragments.cs
- StreamReader.cs
- _Connection.cs
- RequestCacheManager.cs
- MILUtilities.cs
- EntityContainerEmitter.cs
- MasterPageCodeDomTreeGenerator.cs
- HtmlPanelAdapter.cs
- SoapElementAttribute.cs
- MemoryStream.cs
- TemplateBamlTreeBuilder.cs
- FormsAuthentication.cs
- WebHeaderCollection.cs
- XmlDataLoader.cs
- FamilyTypefaceCollection.cs
- DataGridViewCellLinkedList.cs
- ResourceReader.cs
- Formatter.cs
- CanonicalFontFamilyReference.cs
- SchemaNames.cs
- ZipIOExtraFieldElement.cs
- HttpRequestWrapper.cs
- PartialArray.cs
- HierarchicalDataBoundControlAdapter.cs
- EdmToObjectNamespaceMap.cs
- ClientType.cs
- DataBindingCollection.cs
- GeneralTransformGroup.cs
- SelectionRangeConverter.cs
- CommandField.cs
- FormattedTextSymbols.cs
- GradientBrush.cs
- FixedTextView.cs
- SmiEventSink_DeferedProcessing.cs
- Int32Rect.cs
- UrlMapping.cs
- TrustManagerPromptUI.cs
- RadioButton.cs
- Rect3DValueSerializer.cs
- SQlBooleanStorage.cs
- ReflectionUtil.cs
- EditorZoneAutoFormat.cs
- _NTAuthentication.cs
- PackWebRequestFactory.cs
- WebPartZone.cs
- elementinformation.cs
- TdsValueSetter.cs
- DesigntimeLicenseContext.cs
- BufferedGraphics.cs
- DecoderBestFitFallback.cs
- DocumentReferenceCollection.cs
- EventLogPermission.cs
- CacheHelper.cs
- TableCellAutomationPeer.cs
- CallbackDebugBehavior.cs
- ActivitiesCollection.cs
- VariableDesigner.xaml.cs
- XmlConvert.cs
- ProfileGroupSettings.cs
- CodePageEncoding.cs
- XmlSignatureProperties.cs
- SortQueryOperator.cs
- TreeViewAutomationPeer.cs
- RedistVersionInfo.cs
- XamlParser.cs
- CatalogPart.cs
- GeneralTransformGroup.cs
- AssociationSetEnd.cs
- ObjectSecurity.cs
- _CookieModule.cs
- ServiceObjectContainer.cs
- OleDbConnection.cs
- ReflectionUtil.cs
- ASCIIEncoding.cs
- MorphHelper.cs
- ExpressionBuilder.cs
- PackWebResponse.cs
- FlowDocumentPage.cs
- GeometryDrawing.cs
- HttpApplicationFactory.cs