review ServiceBase for var

avinationmerge
UbitUmarov 2015-08-28 20:54:59 +01:00
parent ee4f61fe34
commit 46054d4f02
1 changed files with 5 additions and 2 deletions

View File

@ -26,6 +26,7 @@
*/ */
using System; using System;
using System.IO;
using System.Collections.Generic; using System.Collections.Generic;
using System.Reflection; using System.Reflection;
using log4net; using log4net;
@ -45,9 +46,11 @@ namespace OpenSim.Services.Base
public T LoadPlugin<T>(string dllName, Object[] args) where T:class public T LoadPlugin<T>(string dllName, Object[] args) where T:class
{ {
string[] parts = dllName.Split(new char[] {':'}); string pathRoot = Path.GetPathRoot(dllName);
string noRoot = dllName.Substring(pathRoot.Length);
string[] parts = noRoot.Split(new char[] { ':' });
dllName = parts[0]; dllName = pathRoot + parts[0];
string className = String.Empty; string className = String.Empty;