Skip to content

Commit 93d4fb4

Browse files
committed
Fixed stuff.
1 parent 87043db commit 93d4fb4

7 files changed

Lines changed: 12 additions & 13 deletions

File tree

src/libArgument/libArgument.userprefs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<Properties StartupItem="libArgument\libArgument.csproj">
22
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
3-
<MonoDevelop.Ide.Workbench ActiveDocument="libArgument\Attributes\Switch.cs">
3+
<MonoDevelop.Ide.Workbench ActiveDocument="libArgument\ArgumentParser.cs">
44
<Files>
5-
<File FileName="libArgument\ArgumentParser.cs" Line="3" Column="3" />
6-
<File FileName="libArgument\Attributes\Switch.cs" Line="1" Column="1" />
5+
<File FileName="libArgument\ArgumentParser.cs" Line="19" Column="19" />
76
</Files>
87
</MonoDevelop.Ide.Workbench>
98
<MonoDevelop.Ide.DebuggingService.Breakpoints>

src/libArgument/libArgument/ArgumentParser.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Reflection;
43
using System.Linq;
4+
using System.Reflection;
5+
using Codeaddicts.libArgument.Attributes;
56

6-
namespace libArgument
7+
namespace Codeaddicts.libArgument
78
{
89
public static class ArgumentParser
910
{
@@ -20,7 +21,7 @@ public static class ArgumentParser
2021
static void ParseField<T> (T options, List<string> args, string name) where T : class, new()
2122
{
2223
var field = typeof(T).GetField (name);
23-
var attributes = field.GetCustomAttributes ();
24+
var attributes = field.GetCustomAttributes (false);
2425
var enumerable = attributes as object[] ?? attributes.ToArray ();
2526
var cast = enumerable.First (attrib => attrib as CastAs != null) as CastAs ?? new CastAs (CastingType.String);
2627
foreach (var attrib in enumerable) {

src/libArgument/libArgument/Attributes/Argument.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace libArgument
3+
namespace Codeaddicts.libArgument.Attributes
44
{
55
[AttributeUsage (AttributeTargets.Field, AllowMultiple = true)]
66
public class Argument : Attribute

src/libArgument/libArgument/Attributes/CastAs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace libArgument
3+
namespace Codeaddicts.libArgument.Attributes
44
{
55
[AttributeUsage (AttributeTargets.Field, AllowMultiple = false)]
66
public class CastAs : Attribute

src/libArgument/libArgument/Attributes/CastingType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace libArgument
3+
namespace Codeaddicts.libArgument.Attributes
44
{
55
public enum CastingType {
66
Object = 0,

src/libArgument/libArgument/Attributes/Switch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace libArgument
3+
namespace Codeaddicts.libArgument.Attributes
44
{
55
[AttributeUsage (AttributeTargets.Field, AllowMultiple = true)]
66
public class Switch : Argument

src/libArgument/libArgument/libArgument.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
66
<ProjectGuid>{FE5B4B56-39AB-49C0-8274-8ADC348F4185}</ProjectGuid>
77
<OutputType>Library</OutputType>
8-
<RootNamespace>libArgument</RootNamespace>
9-
<AssemblyName>libArgument</AssemblyName>
10-
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
8+
<RootNamespace>Codeaddicts.libArgument</RootNamespace>
9+
<AssemblyName>codeaddicts.libArgument</AssemblyName>
1110
</PropertyGroup>
1211
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1312
<DebugSymbols>true</DebugSymbols>

0 commit comments

Comments
 (0)