Skip to content

Commit 9ea1ded

Browse files
committed
Added BaseObject.Type autofill
1 parent 80a8c23 commit 9ea1ded

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Aspose.Email-Cloud.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<RepositoryUrl>https://github.com/aspose-email-cloud/aspose-email-cloud-dotnet</RepositoryUrl>
1212
<PackageTags>ASPOSE EMAIL CLOUD SDK Outlook MSG EML MHT</PackageTags>
1313
<RootNamespace>Aspose.Email.Cloud.Sdk</RootNamespace>
14-
<Version>19.11.11</Version>
14+
<Version>19.11.0</Version>
1515
</PropertyGroup>
1616
<ItemGroup Condition=" '$(TargetFramework)' == 'Xamarin.iOS10' OR '$(TargetFramework)' == 'Xamarin.Mac20' OR '$(TargetFramework)' == 'MonoAndroid60'">
1717
<PackageReference Include="Newtonsoft.Json" Version="8.0.3" />

Model/BaseObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class BaseObject
4545
/// <summary>
4646
/// Property type. Used for deserialization purposes
4747
/// </summary>
48-
public string Type { get; set; }
48+
public string Type => GetType().Name;
4949

5050
/// <summary>
5151
/// Get the string presentation of the object

0 commit comments

Comments
 (0)