blob: 39c6f41beec388ba71ef0dd810b9e33d74b28768 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// -----------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// -----------------------------------------------------------------------
#if !SILVERLIGHT
using System;
using System.Runtime.Serialization;
namespace Microsoft.Internal.Runtime.Serialization
{
internal static class SerializationServices
{
public static T GetValue<T>(this SerializationInfo info, string name)
{
Assumes.NotNull(info, name);
return (T)info.GetValue(name, typeof(T));
}
}
}
#endif
|