1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00
xn65/includes/xna/csharp/service.hpp

18 lines
468 B
C++
Raw Permalink Normal View History

2024-05-06 10:32:17 -03:00
#ifndef XNA_CSHARP_SERVICE_HPP
#define XNA_CSHARP_SERVICE_HPP
#include "../default.hpp"
#include "type.hpp"
#include <any>
namespace xna {
2024-05-29 09:42:18 -03:00
//A simplified port of the System.IServiceProvider
//Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.
2024-05-06 10:32:17 -03:00
class IServiceProvider {
public:
2024-05-29 09:42:18 -03:00
//Gets the service object of the specified type.
2024-05-06 10:32:17 -03:00
virtual std::any GetService(Type& serviceType) = 0;
};
}
#endif