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
- XPathNavigatorReader.cs
- StreamUpgradeInitiator.cs
- TextPatternIdentifiers.cs
- RootContext.cs
- MarginCollapsingState.cs
- DataGridViewLayoutData.cs
- translator.cs
- ClientTargetSection.cs
- AccessControlEntry.cs
- DeobfuscatingStream.cs
- TypeContext.cs
- PeerInputChannelListener.cs
- CodeSubDirectory.cs
- initElementDictionary.cs
- InvalidDocumentContentsException.cs
- PackWebRequestFactory.cs
- RawStylusInputReport.cs
- AlternateView.cs
- AnnotationResourceChangedEventArgs.cs
- MimePart.cs
- ServiceModelExtensionCollectionElement.cs
- ActiveXMessageFormatter.cs
- RegisteredExpandoAttribute.cs
- DataGridClipboardHelper.cs
- DataTableMapping.cs
- MethodCallConverter.cs
- ApplicationFileParser.cs
- Exception.cs
- AsyncPostBackTrigger.cs
- XmlAtomicValue.cs
- SafeNativeMethodsMilCoreApi.cs
- TableLayoutCellPaintEventArgs.cs
- Item.cs
- _ListenerAsyncResult.cs
- HwndSubclass.cs
- NameValuePermission.cs
- TripleDES.cs
- DeriveBytes.cs
- DetailsView.cs
- ObjectSecurityT.cs
- ServiceHttpModule.cs
- ConsoleTraceListener.cs
- QualifiedCellIdBoolean.cs
- PasswordBox.cs
- ThicknessKeyFrameCollection.cs
- CompatibleComparer.cs
- FontConverter.cs
- CallTemplateAction.cs
- XmlSerializerAssemblyAttribute.cs
- NamespaceList.cs
- BamlResourceContent.cs
- AutoCompleteStringCollection.cs
- xmlglyphRunInfo.cs
- InstanceLockQueryResult.cs
- SqlRemoveConstantOrderBy.cs
- WindowsProgressbar.cs
- ResourceAttributes.cs
- ExceptionRoutedEventArgs.cs
- InfoCardUIAgent.cs
- HashRepartitionStream.cs
- WebServiceClientProxyGenerator.cs
- XMLUtil.cs
- UserControl.cs
- ExtensionQuery.cs
- WindowsSysHeader.cs
- ExpressionBuilderContext.cs
- TextDecorationCollection.cs
- XPathMessageFilterElementComparer.cs
- SystemIPv4InterfaceProperties.cs
- _NegotiateClient.cs
- ConnectionString.cs
- DeviceContext.cs
- ViewCellSlot.cs
- Thread.cs
- FixedPageAutomationPeer.cs
- ImageCodecInfoPrivate.cs
- XmlILStorageConverter.cs
- BoundField.cs
- MetadataArtifactLoaderCompositeResource.cs
- QuaternionRotation3D.cs
- ObjectDataSource.cs
- GACMembershipCondition.cs
- ThemeableAttribute.cs
- AttachedProperty.cs
- DataColumn.cs
- SecurityException.cs
- HyperLinkDataBindingHandler.cs
- TransformerInfo.cs
- ClientConfigurationSystem.cs
- SlipBehavior.cs
- DataSvcMapFile.cs
- TemplateKey.cs
- ChineseLunisolarCalendar.cs
- VariableQuery.cs
- AnimationClock.cs
- InputBinding.cs
- Descriptor.cs
- Matrix.cs
- StatusBar.cs
- StateMachineWorkflowDesigner.cs