コード例 #1
0
        public static ActorPath From(Type type, string id)
        {
            if (type == null)
            {
                throw new ArgumentNullException("type");
            }

            if (id == null)
            {
                throw new ArgumentNullException("id");
            }

            if (string.IsNullOrWhiteSpace(id))
            {
                throw new ArgumentException("An actor id cannot be empty or contain whitespace only", "id");
            }

            return(new ActorPath(TypeCode.Find(type), id));
        }
コード例 #2
0
 public Type RuntimeType()
 {
     return(TypeCode.Find(Code));
 }