Changeset 4
- Timestamp:
- 11/08/08 16:01:16 (12 days ago)
- Location:
- trunk/TagModel
- Files:
-
- 2 added
- 3 modified
- 1 copied
-
CompositeTagFormat.cs (modified) (2 diffs)
-
ITagFormat.cs (modified) (1 diff)
-
NullTag.cs (added)
-
TagInvalidException.cs (copied) (copied from trunk/AudioModel/AudioInvalidException.cs) (1 diff)
-
TagModel.csproj (modified) (2 diffs)
-
TagUnsupportedException.cs (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/TagModel/CompositeTagFormat.cs
r3 r4 50 50 string fileExtension = Path.GetExtension(fileName).ToUpperInvariant(); 51 51 52 // Try the formats with a matching extension first. 52 53 foreach (ITagFormat format in manager.AddIns) 53 54 if (format.Extensions.Contains(fileExtension)) … … 60 61 } 61 62 62 return null; 63 // If the tag is still not read, return a "null" one. 64 return new NullTag(); 63 65 } 64 66 -
trunk/TagModel/ITagFormat.cs
r3 r4 19 19 20 20 using System.Collections.ObjectModel; 21 using OmniEncoder.AddInModel;22 21 23 22 namespace OmniEncoder.TagModel -
trunk/TagModel/TagInvalidException.cs
r3 r4 21 21 using System.Runtime.Serialization; 22 22 23 namespace OmniEncoder. AudioModel23 namespace OmniEncoder.TagModel 24 24 { 25 25 [Serializable] 26 public class AudioInvalidException : Exception26 public class TagInvalidException : Exception 27 27 { 28 public AudioInvalidException()28 public TagInvalidException() 29 29 : base() 30 30 { 31 31 } 32 32 33 public AudioInvalidException(string message)33 public TagInvalidException(string message) 34 34 : base(message) 35 35 { 36 36 } 37 37 38 public AudioInvalidException(string message, Exception innerException)38 public TagInvalidException(string message, Exception innerException) 39 39 : base(message, innerException) 40 40 { 41 41 } 42 42 43 protected AudioInvalidException(SerializationInfo info, StreamingContext context)43 protected TagInvalidException(SerializationInfo info, StreamingContext context) 44 44 : base(info, context) 45 45 { -
trunk/TagModel/TagModel.csproj
r3 r4 25 25 <ErrorReport>prompt</ErrorReport> 26 26 <WarningLevel>4</WarningLevel> 27 <RunCodeAnalysis>true</RunCodeAnalysis> 27 28 </PropertyGroup> 28 29 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> … … 51 52 </ItemGroup> 52 53 <ItemGroup> 54 <Compile Include="NullTag.cs" /> 55 <Compile Include="TagInvalidException.cs" /> 56 <Compile Include="TagUnsupportedException.cs" /> 53 57 <Compile Include="CompositeTagFormat.cs" /> 54 58 <Compile Include="ITag.cs" />
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)