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
- ResourcesChangeInfo.cs
- Span.cs
- IListConverters.cs
- TransactionScopeDesigner.cs
- ToolboxComponentsCreatingEventArgs.cs
- DNS.cs
- DeflateEmulationStream.cs
- ApplicationGesture.cs
- BrowserCapabilitiesCodeGenerator.cs
- Encoding.cs
- GenericTextProperties.cs
- CorrelationService.cs
- BoolExpressionVisitors.cs
- Variant.cs
- ControlIdConverter.cs
- CmsInterop.cs
- DiagnosticTraceSource.cs
- Table.cs
- SimplePropertyEntry.cs
- TextEditorSelection.cs
- ActivityBindForm.cs
- PersianCalendar.cs
- Queue.cs
- ComIntegrationManifestGenerator.cs
- BaseCodePageEncoding.cs
- XsdDuration.cs
- WindowsAuthenticationModule.cs
- DataTableMappingCollection.cs
- BitStack.cs
- Stroke2.cs
- SR.cs
- BlurBitmapEffect.cs
- WorkflowRuntimeServiceElement.cs
- FieldToken.cs
- TypeReference.cs
- BufferedWebEventProvider.cs
- cookie.cs
- ToolBarTray.cs
- IBuiltInEvidence.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- ContainerFilterService.cs
- DataGridAutoFormatDialog.cs
- StateDesigner.TransitionInfo.cs
- ElementsClipboardData.cs
- NavigationWindowAutomationPeer.cs
- Accessible.cs
- HttpPostedFile.cs
- CircleHotSpot.cs
- CodeDirectoryCompiler.cs
- SelectiveScrollingGrid.cs
- StreamReader.cs
- ManagedIStream.cs
- DataGrid.cs
- OleDbStruct.cs
- CollectionChangedEventManager.cs
- DataKeyCollection.cs
- AxImporter.cs
- MappingMetadataHelper.cs
- ResponseBodyWriter.cs
- XmlSchemaSequence.cs
- WindowsListViewItemCheckBox.cs
- BlockingCollection.cs
- AvTrace.cs
- DecoderFallback.cs
- ToolStripProgressBar.cs
- ButtonColumn.cs
- LayoutTableCell.cs
- SettingsPropertyWrongTypeException.cs
- XmlAttributeCache.cs
- RuntimeUtils.cs
- UnsupportedPolicyOptionsException.cs
- Soap12ProtocolImporter.cs
- Stylesheet.cs
- MimeMultiPart.cs
- BasicDesignerLoader.cs
- CapabilitiesState.cs
- sqlstateclientmanager.cs
- TimeSpanMinutesConverter.cs
- SqlWriter.cs
- SuppressMergeCheckAttribute.cs
- WebPartEditorOkVerb.cs
- TableRow.cs
- recordstatefactory.cs
- RSAPKCS1SignatureDeformatter.cs
- ScriptResourceInfo.cs
- ReferentialConstraint.cs
- GradientStop.cs
- DataProviderNameConverter.cs
- TimeSpanParse.cs
- SelectedGridItemChangedEvent.cs
- TextParaClient.cs
- ArrayMergeHelper.cs
- EntityDesignerBuildProvider.cs
- XmlElementAttributes.cs
- AsymmetricKeyExchangeFormatter.cs
- XamlSerializationHelper.cs
- TimeSpanValidatorAttribute.cs
- GeometryValueSerializer.cs
- XamlTreeBuilder.cs
- FrameworkPropertyMetadata.cs