TrackableData.TrackableResolver.GetContainerTrackerType C# (CSharp) Method

GetContainerTrackerType() public static method

public static GetContainerTrackerType ( Type containerType ) : Type
containerType System.Type
return System.Type
        public static Type GetContainerTrackerType(Type containerType)
        {
            if (typeof(ITrackableContainer).IsAssignableFrom(containerType))
            {
                var trackableTypeName = containerType.Namespace + "." + ("Trackable" + containerType.Name.Substring(1));
                return containerType.Assembly.GetType(trackableTypeName);
            }

            return null;
        }
    }