Skip to content

Commit

Permalink
Add support for .net 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Bassman2 committed Sep 24, 2021
1 parent f7810c1 commit a43ed00
Show file tree
Hide file tree
Showing 16 changed files with 268 additions and 14 deletions.
11 changes: 11 additions & 0 deletions Doc/MediaDevicesDoc/Content/VersionHistory.aml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@
<para>The topics in this section describe the various changes made to the Media Devices over the life of the project.</para>
</introduction>

<section>
<title>Version 1.9.1 was released on Sep. 24th, 2021.</title>
<content>
<list class="bullet">
<listItem>
<para>Add support for .net 4.0.</para>
</listItem>
</list>
</content>
</section>

<section>
<title>Version 1.9 was released on Sep. 24th, 2021.</title>
<content>
Expand Down
2 changes: 1 addition & 1 deletion Doc/MediaDevicesDoc/MediaDevicesDoc.shfbproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<KeepLogFile>True</KeepLogFile>
<DisableCodeBlockComponent>False</DisableCodeBlockComponent>
<CleanIntermediates>True</CleanIntermediates>
<HelpFileVersion>1.9.0.0</HelpFileVersion>
<HelpFileVersion>1.9.1.0</HelpFileVersion>
<MaximumGroupParts>2</MaximumGroupParts>
<NamespaceGrouping>False</NamespaceGrouping>
<SyntaxFilters>Standard</SyntaxFilters>
Expand Down
32 changes: 32 additions & 0 deletions MediaDevices.sln
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExplorerFramework45", "Demo
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MediaDevicesAppFramework45", "Demo\Demo .NET Framework 4.5\MediaDevicesAppFramework45\MediaDevicesAppFramework45.csproj", "{5A9B9D55-CC27-4806-8769-3E74CD13B5E6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MediaDevicesFramework40", "Src\MediaDevicesFramework40\MediaDevicesFramework40.csproj", "{6C4B35D8-B492-4BC0-8531-39F1D105B120}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MediaDevicesUnitTestFramework40", "Test\MediaDevicesUnitTestFramework40\MediaDevicesUnitTestFramework40.csproj", "{7838CEF5-BA9B-47B4-8EB1-98F0BCCAB6B9}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
Test\MediaDevicesUnitTestShare\MediaDevicesUnitTestShare.projitems*{06026362-283d-4fe0-b077-67f5882080f5}*SharedItemsImports = 5
Expand All @@ -71,7 +75,9 @@ Global
Test\MediaDevicesUnitTestShare\MediaDevicesUnitTestShare.projitems*{3932248e-fb4c-49f9-bc89-b8103e3ed42f}*SharedItemsImports = 4
Test\MediaDevicesUnitTestShare\MediaDevicesUnitTestShare.projitems*{3e568355-4b11-4725-8646-8485ebb0348a}*SharedItemsImports = 5
Demo\Demo Share\MediaDevicesAppShare\MediaDevicesAppShare.projitems*{5a9b9d55-cc27-4806-8769-3e74cd13b5e6}*SharedItemsImports = 4
Src\MediaDevicesShare\MediaDevicesShare.projitems*{6c4b35d8-b492-4bc0-8531-39f1d105b120}*SharedItemsImports = 4
Demo\Demo Share\MediaDevicesAppShare\MediaDevicesAppShare.projitems*{7208a4a3-1ba6-419f-878a-4f4724102d1a}*SharedItemsImports = 5
Test\MediaDevicesUnitTestShare\MediaDevicesUnitTestShare.projitems*{7838cef5-ba9b-47b4-8eb1-98f0bccab6b9}*SharedItemsImports = 4
Demo\Demo Share\MediaDevicesAppShare\MediaDevicesAppShare.projitems*{86e3b9c8-cff8-4f91-8ffd-7ca48fe08142}*SharedItemsImports = 5
Src\MediaDevicesShare\MediaDevicesShare.projitems*{8c6734b5-5bbb-413e-a5f2-fc7e6aaffce7}*SharedItemsImports = 13
Test\MediaDevicesUnitTestShare\MediaDevicesUnitTestShare.projitems*{bfac062b-2224-48af-b45e-158f8d21927f}*SharedItemsImports = 13
Expand Down Expand Up @@ -269,6 +275,30 @@ Global
{5A9B9D55-CC27-4806-8769-3E74CD13B5E6}.Release|x64.Build.0 = Release|Any CPU
{5A9B9D55-CC27-4806-8769-3E74CD13B5E6}.Release|x86.ActiveCfg = Release|Any CPU
{5A9B9D55-CC27-4806-8769-3E74CD13B5E6}.Release|x86.Build.0 = Release|Any CPU
{6C4B35D8-B492-4BC0-8531-39F1D105B120}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6C4B35D8-B492-4BC0-8531-39F1D105B120}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6C4B35D8-B492-4BC0-8531-39F1D105B120}.Debug|x64.ActiveCfg = Debug|Any CPU
{6C4B35D8-B492-4BC0-8531-39F1D105B120}.Debug|x64.Build.0 = Debug|Any CPU
{6C4B35D8-B492-4BC0-8531-39F1D105B120}.Debug|x86.ActiveCfg = Debug|Any CPU
{6C4B35D8-B492-4BC0-8531-39F1D105B120}.Debug|x86.Build.0 = Debug|Any CPU
{6C4B35D8-B492-4BC0-8531-39F1D105B120}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6C4B35D8-B492-4BC0-8531-39F1D105B120}.Release|Any CPU.Build.0 = Release|Any CPU
{6C4B35D8-B492-4BC0-8531-39F1D105B120}.Release|x64.ActiveCfg = Release|Any CPU
{6C4B35D8-B492-4BC0-8531-39F1D105B120}.Release|x64.Build.0 = Release|Any CPU
{6C4B35D8-B492-4BC0-8531-39F1D105B120}.Release|x86.ActiveCfg = Release|Any CPU
{6C4B35D8-B492-4BC0-8531-39F1D105B120}.Release|x86.Build.0 = Release|Any CPU
{7838CEF5-BA9B-47B4-8EB1-98F0BCCAB6B9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7838CEF5-BA9B-47B4-8EB1-98F0BCCAB6B9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7838CEF5-BA9B-47B4-8EB1-98F0BCCAB6B9}.Debug|x64.ActiveCfg = Debug|Any CPU
{7838CEF5-BA9B-47B4-8EB1-98F0BCCAB6B9}.Debug|x64.Build.0 = Debug|Any CPU
{7838CEF5-BA9B-47B4-8EB1-98F0BCCAB6B9}.Debug|x86.ActiveCfg = Debug|Any CPU
{7838CEF5-BA9B-47B4-8EB1-98F0BCCAB6B9}.Debug|x86.Build.0 = Debug|Any CPU
{7838CEF5-BA9B-47B4-8EB1-98F0BCCAB6B9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7838CEF5-BA9B-47B4-8EB1-98F0BCCAB6B9}.Release|Any CPU.Build.0 = Release|Any CPU
{7838CEF5-BA9B-47B4-8EB1-98F0BCCAB6B9}.Release|x64.ActiveCfg = Release|Any CPU
{7838CEF5-BA9B-47B4-8EB1-98F0BCCAB6B9}.Release|x64.Build.0 = Release|Any CPU
{7838CEF5-BA9B-47B4-8EB1-98F0BCCAB6B9}.Release|x86.ActiveCfg = Release|Any CPU
{7838CEF5-BA9B-47B4-8EB1-98F0BCCAB6B9}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -298,6 +328,8 @@ Global
{05093302-3683-47D6-B1B6-B7669D8E18EE} = {EBBE8DFF-10F4-41C1-8456-9188F8038EC0}
{F37414EF-44A7-4D50-82CF-A56A9A23D5DE} = {FAB159A3-0F12-47B1-BB0C-91246550C348}
{5A9B9D55-CC27-4806-8769-3E74CD13B5E6} = {FAB159A3-0F12-47B1-BB0C-91246550C348}
{6C4B35D8-B492-4BC0-8531-39F1D105B120} = {12682F58-306A-4F67-8850-BF67BDA26D46}
{7838CEF5-BA9B-47B4-8EB1-98F0BCCAB6B9} = {02F542E8-E2BD-4070-812E-646CA9219E52}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {4FF47020-DA8D-4683-8E5E-813E06A746AD}
Expand Down
4 changes: 3 additions & 1 deletion Nuget/MediaDevices.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>MediaDevices</id>
<version>1.9.0</version>
<version>1.9.1</version>
<title>MediaDevices</title>
<authors>Ralf Beckers</authors>
<owners>Ralf Beckers</owners>
Expand All @@ -21,6 +21,7 @@
<group targetFramework=".NETCoreApp3.1" />
<group targetFramework=".NETCoreApp2.1" />
<group targetFramework=".NETFramework4.5" />
<group targetFramework=".NETFramework4.0" />
</dependencies>
</metadata>
<files>
Expand All @@ -29,6 +30,7 @@
<file src="..\Src\MediaDevicesCore31\bin\Release\netcoreapp3.1\**" target="lib/netcoreapp3.1" />
<file src="..\Src\MediaDevicesCore21\bin\Release\netcoreapp2.1\**" target="lib/netcoreapp2.1" />
<file src="..\Src\MediaDevicesFramework45\bin\Release\**" target="lib/net45" />
<file src="..\Src\MediaDevicesFramework40\bin\Release\**" target="lib/net40" />
<file src="..\Doc\MediaDevicesDoc\Help\MediaDevices.chm" target="content" />
<file src="MediaDevicesLicense.txt" target="content" />
</files>
Expand Down
4 changes: 3 additions & 1 deletion Nuget/MediaDevicesPreview.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>MediaDevices</id>
<version>1.9.0</version>
<version>1.9.1</version>
<title>MediaDevices</title>
<authors>Ralf Beckers</authors>
<owners>Ralf Beckers</owners>
Expand All @@ -21,6 +21,7 @@
<group targetFramework=".NETCoreApp3.1" />
<group targetFramework=".NETCoreApp2.1" />
<group targetFramework=".NETFramework4.5" />
<group targetFramework=".NETFramework4.0" />
</dependencies>
</metadata>
<files>
Expand All @@ -29,6 +30,7 @@
<file src="..\Src\MediaDevicesCore31\bin\Release\netcoreapp3.1\**" target="lib/netcoreapp3.1" />
<file src="..\Src\MediaDevicesCore21\bin\Release\netcoreapp2.1\**" target="lib/netcoreapp2.1" />
<file src="..\Src\MediaDevicesFramework45\bin\Release\**" target="lib/net45" />
<file src="..\Src\MediaDevicesFramework40\bin\Release\**" target="lib/net40" />
<file src="..\Doc\MediaDevicesDoc\Help\MediaDevices.chm" target="content" />
<file src="MediaDevicesLicense.txt" target="content" />
</files>
Expand Down
6 changes: 3 additions & 3 deletions Src/MediaDevices50/MediaDevices50.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>Bassman.snk</AssemblyOriginatorKeyFile>
<DelaySign>false</DelaySign>
<AssemblyVersion>1.9.0.0</AssemblyVersion>
<Version>1.9.0</Version>
<AssemblyVersion>1.9.1.0</AssemblyVersion>
<Version>1.9.1</Version>
<Authors>Ralf Beckers</Authors>
<Copyright>Copyright © 2016 - 2021 by Ralf Beckers</Copyright>
<Company>Ralf Beckers</Company>
Expand All @@ -22,7 +22,7 @@
<RepositoryType>git</RepositoryType>
<PackageTags>MTP;WPD;Portable Device;Portable Devices API;phone;tablet</PackageTags>
<PackageReleaseNotes>Support for .Net 5.0 and 6.0</PackageReleaseNotes>
<FileVersion>1.9.0.0</FileVersion>
<FileVersion>1.9.1.0</FileVersion>
<AnalysisLevel>latest</AnalysisLevel>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>
Expand Down
4 changes: 3 additions & 1 deletion Src/MediaDevicesCore21/MediaDevicesCore21.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<RootNamespace>MediaDevices</RootNamespace>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>Bassman.snk</AssemblyOriginatorKeyFile>
<Version>1.9.0</Version>
<Version>1.9.1</Version>
<Authors>Ralf Beckers</Authors>
<Company>Ralf Beckers</Company>
<PackageId>MediaDevices</PackageId>
Expand All @@ -18,6 +18,8 @@
<RepositoryType>git</RepositoryType>
<PackageTags>MTP;WPD;Portable Device;Portable Devices API;phone;tablet</PackageTags>
<PackageReleaseNotes>Support for .Net 5.0 and 6.0</PackageReleaseNotes>
<AssemblyVersion>1.9.1.0</AssemblyVersion>
<FileVersion>1.9.1.0</FileVersion>
</PropertyGroup>

<Import Project="..\MediaDevicesShare\MediaDevicesShare.projitems" Label="Shared" />
Expand Down
2 changes: 1 addition & 1 deletion Src/MediaDevicesCore31/MediaDevicesCore31.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<AssemblyName>MediaDevices</AssemblyName>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>Bassman.snk</AssemblyOriginatorKeyFile>
<Version>1.9.0</Version>
<Version>1.9.1</Version>
<PackageId>MediaDevices</PackageId>
<Company>Ralf Beckers</Company>
<Authors>Ralf Beckers</Authors>
Expand Down
56 changes: 56 additions & 0 deletions Src/MediaDevicesFramework40/MediaDevicesFramework40.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{6C4B35D8-B492-4BC0-8531-39F1D105B120}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MediaDevices</RootNamespace>
<AssemblyName>MediaDevices</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;NET40</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>Bassman.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Bassman.snk" />
</ItemGroup>
<Import Project="..\MediaDevicesShare\MediaDevicesShare.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
36 changes: 36 additions & 0 deletions Src/MediaDevicesFramework40/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("MediaDevices")]
[assembly: AssemblyDescription("Media Devices is a API to interact with MTP (Media Transfer Protocol), PTP (Picture Transport Protocol) and MSC (Mass Storage Class) devices like cell phones, tablets and cameras.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Ralf Beckers")]
[assembly: AssemblyProduct("MediaDevices")]
[assembly: AssemblyCopyright("Copyright © 2016 - 2021 by Ralf Beckers")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("6c4b35d8-b492-4bc0-8531-39f1d105b120")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.9.1.0")]
[assembly: AssemblyFileVersion("1.9.1.0")]
2 changes: 2 additions & 0 deletions Src/MediaDevicesFramework45/MediaDevicesFramework45.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -31,6 +32,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Release\MediaDevices.xml</DocumentationFile>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
Expand Down
4 changes: 2 additions & 2 deletions Src/MediaDevicesFramework45/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.9.0.0")]
[assembly: AssemblyFileVersion("1.9.0.0")]
[assembly: AssemblyVersion("1.9.1.0")]
[assembly: AssemblyFileVersion("1.9.1.0")]
17 changes: 13 additions & 4 deletions Src/MediaDevicesShare/Internal/ComEnumerable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ public static IEnumerable<KeyValuePair<string, string>> ToKeyValuePair(this IPor
public static Guid Guid(this Enum e)
{
FieldInfo fi = e.GetType().GetField(e.ToString());
EnumGuidAttribute attribute = fi.GetCustomAttribute<EnumGuidAttribute>();

// changed for .net framework 4.0
// EnumGuidAttribute attribute = fi.GetCustomAttribute<EnumGuidAttribute>();
EnumGuidAttribute attribute = Attribute.GetCustomAttribute(fi, typeof(EnumGuidAttribute)) as EnumGuidAttribute;
return attribute.Guid;
}

Expand Down Expand Up @@ -104,7 +107,9 @@ public static T GetEnum<T>(this Guid guid) where T : struct
{
T en = Enum.GetValues(typeof(T)).Cast<T>().Where(e =>
{
EnumGuidAttribute ea = e.GetType().GetField(e.ToString()).GetCustomAttribute<EnumGuidAttribute>();
// changed for .net framework 4.0
// EnumGuidAttribute ea = e.GetType().GetField(e.ToString()).GetCustomAttribute<EnumGuidAttribute>();
EnumGuidAttribute ea = Attribute.GetCustomAttribute(e.GetType().GetField(e.ToString()), typeof(EnumGuidAttribute)) as EnumGuidAttribute;
return ea.Guid == guid;
}).FirstOrDefault();
return en;
Expand All @@ -115,7 +120,9 @@ public static T GetEnumFromAttrKey<T>(this PropertyKey key) where T : struct //
{
T en = Enum.GetValues(typeof(T)).Cast<T>().Where(e =>
{
KeyAttribute attr = e.GetType().GetField(e.ToString()).GetCustomAttribute<KeyAttribute>();
// changed for .net framework 4.0
// KeyAttribute attr = e.GetType().GetField(e.ToString()).GetCustomAttribute<KeyAttribute>();
KeyAttribute attr = Attribute.GetCustomAttribute(e.GetType().GetField(e.ToString()), typeof(KeyAttribute)) as KeyAttribute;
return attr.PropertyKey == key;
}).FirstOrDefault();
if (en.Equals(default(T)))
Expand All @@ -130,7 +137,9 @@ public static T GetEnumFromAttrGuid<T>(this Guid guid) where T : struct // enum
{
T en = Enum.GetValues(typeof(T)).Cast<T>().Where(e =>
{
return e.GetType().GetField(e.ToString()).GetCustomAttribute<EnumGuidAttribute>().Guid == guid;
// changed for .net framework 4.0
// return e.GetType().GetField(e.ToString()).GetCustomAttribute<EnumGuidAttribute>().Guid == guid;
return (Attribute.GetCustomAttribute(e.GetType().GetField(e.ToString()), typeof(EnumGuidAttribute)) as EnumGuidAttribute).Guid == guid;
}).FirstOrDefault();
if (en.Equals(default(T)))
{
Expand Down
Loading

0 comments on commit a43ed00

Please sign in to comment.