Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Commit

Permalink
Merge pull request #179 from meklu/monogame-sdl2
Browse files Browse the repository at this point in the history
[FNA] Add #regions to Content/
  • Loading branch information
flibitijibibo committed Mar 26, 2014
2 parents 6914932 + 358d7c3 commit d9483bf
Show file tree
Hide file tree
Showing 64 changed files with 1,174 additions and 388 deletions.
14 changes: 14 additions & 0 deletions MonoGame.Framework/Content/ContentExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,29 @@
*/
#endregion

#region Using Statements
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
#endregion

namespace Microsoft.Xna.Framework.Content
{
public static class ContentExtensions
{
#region Public Static Constructor Extractor Method

public static ConstructorInfo GetDefaultConstructor(this Type type)
{
BindingFlags attrs = BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance;
return type.GetConstructor(attrs, null, new Type[0], null);
}

#endregion

#region Public Static Property Extractor Method

public static PropertyInfo[] GetAllProperties(this Type type)
{

Expand All @@ -44,6 +52,10 @@ public static PropertyInfo[] GetAllProperties(this Type type)
return props;
}

#endregion

#region Public Static Field Extractor Method

public static FieldInfo[] GetAllFields(this Type type)
{
BindingFlags attrs = (
Expand All @@ -54,5 +66,7 @@ public static FieldInfo[] GetAllFields(this Type type)
);
return type.GetFields(attrs);
}

#endregion
}
}
6 changes: 6 additions & 0 deletions MonoGame.Framework/Content/ContentLoadException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@
*/
#endregion

#region Using Statements
using System;
#endregion

namespace Microsoft.Xna.Framework.Content
{
public class ContentLoadException : Exception
{
#region Public Constructors

public ContentLoadException() : base()
{
}
Expand All @@ -24,6 +28,8 @@ public ContentLoadException(string message) : base(message)
public ContentLoadException(string message, Exception innerException) : base(message,innerException)
{
}

#endregion
}
}

Loading

0 comments on commit d9483bf

Please sign in to comment.