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
- DrawingDrawingContext.cs
- CompiledXpathExpr.cs
- SchemaNotation.cs
- DataSysAttribute.cs
- ExceptionHandler.cs
- TextEditor.cs
- OutOfMemoryException.cs
- Message.cs
- SQLInt32Storage.cs
- DictionaryEntry.cs
- DataGridViewCellValidatingEventArgs.cs
- UpDownBase.cs
- TypeNameConverter.cs
- SymmetricAlgorithm.cs
- Viewport3DAutomationPeer.cs
- ParameterCollection.cs
- AsymmetricKeyExchangeDeformatter.cs
- OutputCacheModule.cs
- HtmlUtf8RawTextWriter.cs
- RequestDescription.cs
- FrameworkElementFactoryMarkupObject.cs
- ColorConvertedBitmap.cs
- ErrorWebPart.cs
- TemplateComponentConnector.cs
- WindowsScrollBarBits.cs
- connectionpool.cs
- TimeEnumHelper.cs
- DataBindingExpressionBuilder.cs
- SamlAuthorizationDecisionClaimResource.cs
- OptimalTextSource.cs
- OleDbWrapper.cs
- EntityDataSourceValidationException.cs
- DirtyTextRange.cs
- FontSource.cs
- JapaneseLunisolarCalendar.cs
- DataGridBoundColumn.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- PointAnimation.cs
- ContentDisposition.cs
- InstancePersistenceCommandException.cs
- InputElement.cs
- AddingNewEventArgs.cs
- UnescapedXmlDiagnosticData.cs
- ShapeTypeface.cs
- RegexNode.cs
- UnauthorizedWebPart.cs
- IntegrationExceptionEventArgs.cs
- EpmTargetPathSegment.cs
- StructuredTypeInfo.cs
- MaskedTextProvider.cs
- EditorPartChrome.cs
- HashUtility.cs
- SQLDecimalStorage.cs
- SqlProviderUtilities.cs
- HtmlHead.cs
- ActiveXContainer.cs
- BuildProviderCollection.cs
- ImageSource.cs
- OleStrCAMarshaler.cs
- XmlSchemaComplexContentRestriction.cs
- StylusButton.cs
- TextWriterTraceListener.cs
- ImageListImageEditor.cs
- InstanceStoreQueryResult.cs
- TextServicesHost.cs
- WSHttpBindingBaseElement.cs
- FloaterParaClient.cs
- InsufficientMemoryException.cs
- DataErrorValidationRule.cs
- BitmapImage.cs
- X509Certificate2.cs
- SqlInfoMessageEvent.cs
- SecurityTokenAuthenticator.cs
- CommonRemoteMemoryBlock.cs
- TemplateControlBuildProvider.cs
- NativeWindow.cs
- ManagedFilter.cs
- HttpWriter.cs
- ForAllOperator.cs
- DetailsViewModeEventArgs.cs
- _HeaderInfo.cs
- StatusBarItem.cs
- InfiniteTimeSpanConverter.cs
- RegexTree.cs
- TraceSource.cs
- StandardOleMarshalObject.cs
- DefaultHttpHandler.cs
- PassportAuthentication.cs
- DataSourceControlBuilder.cs
- CommonDialog.cs
- StyleBamlTreeBuilder.cs
- PathTooLongException.cs
- DbConnectionPoolGroup.cs
- BooleanAnimationUsingKeyFrames.cs
- NumberFormatter.cs
- ErrorsHelper.cs
- ImageMapEventArgs.cs
- ProofTokenCryptoHandle.cs
- DataTemplateKey.cs
- Converter.cs