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
- WsdlParser.cs
- X509AsymmetricSecurityKey.cs
- StateFinalizationDesigner.cs
- NameValueCache.cs
- Application.cs
- SystemNetHelpers.cs
- ValidationSummary.cs
- OrthographicCamera.cs
- WmlPageAdapter.cs
- Expander.cs
- QueryTreeBuilder.cs
- TemplateBamlTreeBuilder.cs
- SmiRequestExecutor.cs
- RSAPKCS1KeyExchangeFormatter.cs
- SelectionGlyph.cs
- DatePickerAutomationPeer.cs
- CacheOutputQuery.cs
- DataServiceQueryProvider.cs
- PnrpPeerResolverElement.cs
- TextBoxAutomationPeer.cs
- ConfigurationSectionGroup.cs
- UpDownEvent.cs
- AxImporter.cs
- NetworkStream.cs
- MdiWindowListItemConverter.cs
- ReflectionUtil.cs
- HealthMonitoringSectionHelper.cs
- ConstraintStruct.cs
- ChannelDispatcher.cs
- IdentifierService.cs
- Certificate.cs
- Module.cs
- HwndSubclass.cs
- PasswordDeriveBytes.cs
- EvidenceBase.cs
- LowerCaseStringConverter.cs
- SelectionRangeConverter.cs
- Image.cs
- ListControlBuilder.cs
- OleDbStruct.cs
- XhtmlBasicValidatorAdapter.cs
- SafeLibraryHandle.cs
- elementinformation.cs
- HttpHeaderCollection.cs
- keycontainerpermission.cs
- RtfFormatStack.cs
- Image.cs
- SharedStatics.cs
- XPathParser.cs
- complextypematerializer.cs
- securitycriticaldata.cs
- TrackingMemoryStream.cs
- ListViewItemSelectionChangedEvent.cs
- RootProfilePropertySettingsCollection.cs
- Tablet.cs
- ResourceReader.cs
- ToolboxItemWrapper.cs
- TableLayoutSettings.cs
- XmlSchemaObjectTable.cs
- XmlSchemaSimpleType.cs
- ObsoleteAttribute.cs
- WindowsListViewItem.cs
- PeerApplicationLaunchInfo.cs
- UrlPropertyAttribute.cs
- GZipDecoder.cs
- DataAdapter.cs
- TemplatedWizardStep.cs
- DependencyObjectProvider.cs
- BindingFormattingDialog.cs
- XmlReaderSettings.cs
- WindowsListViewSubItem.cs
- WindowsSpinner.cs
- ByteRangeDownloader.cs
- UnsafeNativeMethods.cs
- WindowsTitleBar.cs
- MDIWindowDialog.cs
- ImagingCache.cs
- HtmlDocument.cs
- RelationshipDetailsCollection.cs
- JsonClassDataContract.cs
- QuaternionIndependentAnimationStorage.cs
- TableLayoutColumnStyleCollection.cs
- OverrideMode.cs
- DictionaryBase.cs
- CheckoutException.cs
- Parsers.cs
- ResourceProviderFactory.cs
- SqlFunctionAttribute.cs
- TimeIntervalCollection.cs
- LayoutUtils.cs
- keycontainerpermission.cs
- AuthenticationModuleElementCollection.cs
- CompressStream.cs
- CodeGroup.cs
- ConfigurationElement.cs
- XmlNamedNodeMap.cs
- StorageScalarPropertyMapping.cs
- DynamicDiscoveryDocument.cs
- ClientSponsor.cs
- COM2EnumConverter.cs