Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media3D / Point3DCollection.cs / 1 / Point3DCollection.cs
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
//
// Description: 3D point 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
{
///
/// Point3D - 3D point representation.
/// Defaults to (0,0,0).
///
public partial class Point3DCollection
{
///
/// 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() ;
Point3DCollection collection = new Point3DCollection( (int) count) ;
for ( uint i = 0; i < count ; i ++ )
{
Point3D point = new Point3D(
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: 3D point 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
{
///
/// Point3D - 3D point representation.
/// Defaults to (0,0,0).
///
public partial class Point3DCollection
{
///
/// 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() ;
Point3DCollection collection = new Point3DCollection( (int) count) ;
for ( uint i = 0; i < count ; i ++ )
{
Point3D point = new Point3D(
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
- NativeMethods.cs
- BCryptNative.cs
- KeyPullup.cs
- ParentUndoUnit.cs
- CustomAttributeBuilder.cs
- GridViewAutomationPeer.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DataGridViewCellStyleConverter.cs
- BuilderInfo.cs
- DecoderBestFitFallback.cs
- ListViewDeleteEventArgs.cs
- TransformationRules.cs
- XmlNamespaceDeclarationsAttribute.cs
- AssociationTypeEmitter.cs
- StackSpiller.Generated.cs
- RawStylusInput.cs
- AssertFilter.cs
- DataGridViewRowPostPaintEventArgs.cs
- MatrixUtil.cs
- AffineTransform3D.cs
- ThicknessAnimationBase.cs
- CommonDialog.cs
- TextBlock.cs
- SelectionPattern.cs
- CaseExpr.cs
- OrderedDictionary.cs
- WebPartChrome.cs
- TextRange.cs
- UrlPropertyAttribute.cs
- DataViewSetting.cs
- GeneralTransform3DCollection.cs
- ValueSerializerAttribute.cs
- ErrorProvider.cs
- versioninfo.cs
- ConfigurationSectionGroupCollection.cs
- Debug.cs
- KeyValuePairs.cs
- Point3DKeyFrameCollection.cs
- Int32.cs
- MdImport.cs
- ButtonRenderer.cs
- DataSourceCacheDurationConverter.cs
- InvokeHandlers.cs
- MarshalDirectiveException.cs
- FormsAuthenticationUser.cs
- HtmlHead.cs
- EdmToObjectNamespaceMap.cs
- PropertyToken.cs
- ActivityMarkupSerializationProvider.cs
- ExtentKey.cs
- TitleStyle.cs
- AppDomainEvidenceFactory.cs
- LayoutDump.cs
- FileUtil.cs
- HttpCookie.cs
- ProviderCommandInfoUtils.cs
- ListViewUpdatedEventArgs.cs
- SkinIDTypeConverter.cs
- MruCache.cs
- ServiceModelExtensionElement.cs
- StateFinalizationDesigner.cs
- DbInsertCommandTree.cs
- EntityParameter.cs
- CodeDomSerializerException.cs
- SqlInternalConnection.cs
- CheckBoxFlatAdapter.cs
- ButtonChrome.cs
- BoundField.cs
- ExpressionServices.cs
- BackgroundWorker.cs
- TTSVoice.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- ColorMap.cs
- FixedSOMLineCollection.cs
- MenuCommands.cs
- ArgumentDirectionHelper.cs
- KernelTypeValidation.cs
- dtdvalidator.cs
- TextParagraphProperties.cs
- TextServicesCompartment.cs
- PrintingPermission.cs
- WorkflowWebHostingModule.cs
- NextPreviousPagerField.cs
- StdValidatorsAndConverters.cs
- ActivityWithResultWrapper.cs
- ProcessManager.cs
- NativeMethods.cs
- HtmlToClrEventProxy.cs
- DataGridViewColumnTypeEditor.cs
- SingleTagSectionHandler.cs
- Console.cs
- SerialPinChanges.cs
- PageThemeParser.cs
- ErrorView.xaml.cs
- DBSqlParserTable.cs
- BamlLocalizableResourceKey.cs
- ProgressBarAutomationPeer.cs
- DecimalAnimationBase.cs
- XmlElementAttributes.cs
- XmlSerializerFaultFormatter.cs