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
- UIPermission.cs
- SkipStoryboardToFill.cs
- Item.cs
- DataPagerField.cs
- UseAttributeSetsAction.cs
- TaiwanCalendar.cs
- LogicalExpr.cs
- GeneralTransform3DCollection.cs
- HtmlGenericControl.cs
- HttpPostedFileBase.cs
- ThicknessAnimationBase.cs
- XDRSchema.cs
- UriTemplateCompoundPathSegment.cs
- ParagraphVisual.cs
- GorillaCodec.cs
- SettingsProperty.cs
- MultipartContentParser.cs
- DetailsView.cs
- _NtlmClient.cs
- ToolZoneDesigner.cs
- UnauthorizedAccessException.cs
- GetPageNumberCompletedEventArgs.cs
- XmlEnumAttribute.cs
- ImageBrush.cs
- Int32KeyFrameCollection.cs
- XPathChildIterator.cs
- ContentControl.cs
- ProgressBarBrushConverter.cs
- ExceptionUtil.cs
- TypeGeneratedEventArgs.cs
- _ShellExpression.cs
- TextEffectCollection.cs
- XmlSerializerNamespaces.cs
- CryptographicAttribute.cs
- HtmlInputButton.cs
- ToolboxDataAttribute.cs
- ProfilePropertyMetadata.cs
- MLangCodePageEncoding.cs
- QfeChecker.cs
- BasicKeyConstraint.cs
- TextPattern.cs
- FrugalMap.cs
- DataControlButton.cs
- OleDbPermission.cs
- VisualProxy.cs
- Decimal.cs
- DataBoundLiteralControl.cs
- DataServiceException.cs
- DataBinder.cs
- UserMapPath.cs
- HtmlControl.cs
- TypeCodeDomSerializer.cs
- SecurityTokenValidationException.cs
- _NegoStream.cs
- ArgumentsParser.cs
- ScriptManagerProxy.cs
- FormatStringEditor.cs
- HtmlTableCell.cs
- WebPartsPersonalizationAuthorization.cs
- RewritingValidator.cs
- StandardRuntimeEnumValidatorAttribute.cs
- ValueHandle.cs
- ObjectDataSourceStatusEventArgs.cs
- FormsAuthenticationTicket.cs
- RemotingSurrogateSelector.cs
- ConfigLoader.cs
- XmlException.cs
- MethodBody.cs
- AttributeSetAction.cs
- InputChannel.cs
- DiagnosticTraceSource.cs
- InternalBufferOverflowException.cs
- CodeSnippetExpression.cs
- X509CertificateTrustedIssuerElement.cs
- GridSplitter.cs
- OperatingSystem.cs
- PixelShader.cs
- PhysicalAddress.cs
- XmlWrappingReader.cs
- SqlConnectionString.cs
- WebPartMovingEventArgs.cs
- ManagedIStream.cs
- SafeFileMappingHandle.cs
- InputLanguageProfileNotifySink.cs
- WeakReadOnlyCollection.cs
- FixUp.cs
- SmiContext.cs
- Content.cs
- TranslateTransform3D.cs
- SelectionEditingBehavior.cs
- DocumentPageTextView.cs
- QueryInterceptorAttribute.cs
- PolyLineSegment.cs
- ClassHandlersStore.cs
- IntSecurity.cs
- ConfigXmlWhitespace.cs
- ResourceDictionary.cs
- RTLAwareMessageBox.cs
- RuntimeConfig.cs
- NonParentingControl.cs